Fixes #4552: Java: fix ticket #4313: MPI_STATUS_IGNORE provokes SIGSEGV in MPI_Waitany and MPI_Testany

---svn-pre-commit-ignore-below---

r31470 [[BR]]
Java: apply a patch which solves the ticket #4313
Fixes #4557: Move r31501 to v1.8 branch (OSHMEM: bug fix for hca)

---svn-pre-commit-ignore-below---

r31501 [[BR]]
OSHMEM: bug fix for hca selection from list

fixed by AlexM, reviewed by Miked

cmr=v1.8.2:reviewer=ompi-rm1.8
Fixes #4558: Move r31502 to v1.8 branch (OSHMEM: fix segv with new)

---svn-pre-commit-ignore-below---

r31502 [[BR]]
OSHMEM: fix segv with new OFED

new OFED changed struct layout and static assignment caused segv.
detect struct new layout and use dynamic assignment

fixed by AlexM, reviewed by Miked

cmr=v1.8.2:reviewer=ompi-rm1.8
Fixes #4544: Move r31457 to v1.8 (remove unused var from usnic btl)

---svn-pre-commit-ignore-below---

r31457 [[BR]]
Remove set-but-unused variable.