Fixes for mingw compile for vjoy