oshmem: fix warnings

fixed by Igor, reviewed by Miked

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