glib2 windows: support building by CMake