OSHMEM: compilation fix for pathscale 5.0 and pshmem API

fixed by Roman, reviewed by Igor/Mike

cmr=v1.8.2:reviewer=ompi-rm1.8
OSHMEM: some autogenerated files should be static

fixed by Roman, reviewed by Igor/Mike

cmr=v1.8.2:reviewer=ompi-rm1.8