PME-only counters are now reset with -maxh -resethway

Fixes #1125
For clarity gmx_pme_recv_q_x now returns and enum
and gmx_pme_send_switch is renamed to gmx_pme_send_switchgrid.

Change-Id: I21952780f0b719378d947a79324c844ccde7160a
fixed bug with sd integrator and OpenMP threading

This could cause small error in the integration or a segv.
This bug was introduced with d120c370
Fixes #1138

Change-Id: I4ae2c0c857cb68e796d01c5b2e0ea42beaf13d4a
Fix CUDA_HOST_COMPILER flag name

Fixes #1143

Change-Id: If34f27aa8fa73420ac85d4ec6997e8ebe78261d4
Merge "Fix CUDA_HOST_COMPILER flag name" into release-4-6
Merge "fixed bug with sd integrator and OpenMP threading" into release-4-6
Updated FindGSL.cmake to version written by me.

relates to #815

Change-Id: I323f113b4016ef232124fcdcc985d0526bc8a880
Merge "PME-only counters are now reset with -maxh -resethway" into release-4-6
Merge "Updated FindGSL.cmake to version written by me." into release-4-6
Added extra check in for setaffinity support.

The Linux version of tMPI_Thread_setaffinity_support() did not check
whether pthread_setaffinity_np() would actually work on the system
it's running on. It now checks by running pthread_getaffinity_np()
and checking its return value.

This is relevant for, for example, Bluegene systems which don't
support explicit affinity setting.

Change-Id: I4833e7384067f897013d6fa4d0b35963ae740fcf
Merge release-4-6 into master

Conflicts:
	cmake/Findgsl.cmake (deleted)
	src/gromacs/legacyheaders/pme.h (manually removed export)
	src/gromacs/mdlib/pme_pp.c (trivial)

Change-Id: I716f58e9dbb2c4a4c81993475ea6a98a0d0ba440
Merge "Merge release-4-6 into master"