Windows fixes

The following fixes make it possible to build under Windows 7 32bits  w/ Python 2.7 and MinGW and the `scipy-stack` package from Christoph Gohlke at http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy-stack

There are still broken tests but at least the tests pass now.