Build system introspection, rudimentary bootstrap and mingw support