Revert "modules: Fix build on Visual Studio"
This reverts commit acd9c126.
This commit breaks the build with GLib main on all platforms, and defining _GLIB_EXTERN arguably invades the GLib namespace.
A different fix for msvc will have to be found.