mingw compilation fixes
add monkey-patch