generate config.h for gcc build. support mingw build