Some hacky support for mingw
Tiny cleanup