oshmem & mxm2.0 yet another compilation fix

reviewed by miked
fix oshmem static linking
fixed by Roman, reviewed by miked