Just realized this, you are using SPAWN and not MPI-SPAWN . You should try MPI-SPAWN. I'm surprised it compiled with SPAWN, and to me it's unclear with what kind of network it actually did compile.
For MPI-SPAWN the IB_LIB_NAME etc are not needed, those are only used when the OPENIB network is defined.