Include glibconfig.h before checking G_OS_WIN32.