Fixes related to building the Python bindings on MinGW. (dm)