Move config.h before other includes (which may use feature tests).