Fix native mingw32 build