Remove unused config.h defines

Also remove some unnecessary inclusions of gmx_header_config.h in source
files.

Change-Id: I1f48a7f112956938b1a77130631f15c532830647