build: introspection stuff for building with mingw