Move some defines to gmxpre.h for thread-MPI