oob/tcp: fix a race condition

Mimick the btl/tcp protocol to solve the race condition that happens
when two peers try to connect to each other at the same time

cmr=v1.8.4:reviewer=rhc

This commit was SVN r32799.
(cherry picked from commit 9661e4537fc6d932c63e4680b23cfd86a3f64035)
btl/vader: bring up to date with fixes/updates from trunk

This commit brings the following commits from master:

open-mpi/ompi@12bfd13
open-mpi/ompi@79881ca
open-mpi/ompi@a31cf3b
open-mpi/ompi@13642f5
open-mpi/ompi@f56169c
open-mpi/ompi@1a3734a
open-mpi/ompi@13643f5
open-mpi/ompi@d60f0cb
open-mpi/ompi@75e8387

The most relevant changes:

 - Add support for KNEM. Allow selection of the single-copy mechanism
   at runtime. The default behavior has not changed. Vader will continue
   to use the best available mechanism. If the default mechanism is
   not available vader will fall back on another mechanism.

 - Improved CMA support. Code now determines if CMA can be used and
   (if possible) sets the appropriate ptrace permissions so it can
   be used.

 - Improved memory scaling by allocating fast box memory only once a
   send threshold has been met. This addresses an issue discovered by
   Riken.

 - Better fast-box design that further improves the small message
   performance.

Pieces of other relevant commits are also included in this commit.

Tested with XPMEM, CMA, and KNEM with Linux kernel 3.13.
btl/vader: bring over defensive programming changes from master

master commits:

open-mpi/ompi@e1bc2de8533220d8f5e5bbf7bb364006f4d6c7e7
btl/vader: update help messages

Contains master commits:

open-mpi/ompi@55a5c99ff0027663f55a89a06ea2047d1ee3a155
open-mpi/ompi@d72fc7a05fa5cff26c5fab99cc631b2f2dc8c8b0
OSHMEM: Add two new mca variables

Added use_hp flag in sshmem/sysv variable to control huge page usage;
Added shared_mr sshmem/verbs;
Both paraemetes are set in auto.
Fix help messages

fixed by Igor, reviewed by @miked-mellanox and @alex-mikheev
(cherry picked from commit d82dc7f67f47b326888ddb0dc846536f99b40d28)
Disable sendi optimization for GPU buffers
btl/sm: fix a typo in the error message

This is a backport of open-mpi/ompi@b4e445afb53a1e3ef018c838292df64ec3c31b3a
wrappers: add the $(EXEEXT) extension to the installed symbolic links

This is a backport of commit open-mpi/ompi@eef7590e585fbdaaadf90d9f890b32367e5320e0
vt/wrappers: add the $(EXEEXT) extension to the installed symbolic links

(cherry picked from commit open-mpi/ompi@6af465f12da4e1b223ddba9e4ab9e73e2010ace0)
Merge pull request #61 from ggouaillardet/topic/vt_wrappers_exeext

vt/wrappers: add the $(EXEEXT) extension to the installed symbolic links
Merge pull request #60 from ggouaillardet/topic/wrappers_symlinks_exeext

wrappers: add the $(EXEEXT) extension to the installed symbolic links
Merge pull request #58 from ggouaillardet/topic/btl_sm_typo

btl/sm: fix a typo in the error message
Merge pull request #57 from rolfv/pr/disable-gpu-sendi

Disable sendi optimization for GPU buffers
Merge pull request #7 from miked-mellanox/topic/oshmem_add_two_new_mca_variables

Add-two-new-mca-variables, fix opal_help failure
Merge pull request #46 from hjelmn/vader_update

btl/vader: bring up to date with fixes/updates from trunk
mpiJava: call mca_base_var_register *after* MPI_Init
Thanks to Takahiro Kawashima and Siegmar Gross for pointing this issue

(cherry picked from commit a16c1e44189366fbc8e967769e050f517a40f3f8)
ob1: add a destructor to mca_pml_ob1_recv_request_t

opal_mutex_t must be OBJ_DESTRUCTed in order to avoid
a memory leak (pthread_mutex_init allocates memory under
Cygwin, so pthread_mutex_destroy is mandatory)

Thanks to Marco Atzeri for reporting this issue
(cherry picked from commit open-mpi/ompi@ed93c8787d17b470bc7c1afe80536d8cacdd862d)
oob/tcp: include a missing header file

warning can be seen under cygwin without the missing header file

(cherry-picked from commit open-mpi/ompi@c9d1e16a9e8f4e55bbba0e1a5b7bee84594d05c1)
(cherry picked from commit open-mpi/ompi@652ecdb888876cb3aaced0eeb582f8c1c123c6e0)
Merge pull request #63 from ggouaillardet/topic/ob1_recvreq_leak

ob1: add a destructor to mca_pml_ob1_recv_request_t
Merge pull request #62 from jsquyres/pr/java-mca-var-register-fix

mpiJava: call mca_base_var_register *after* MPI_Init