fix broken build on mingw / mxe