updated for gromacs-4.6.x