fix Python bindings on Windows (MinGW)