Support cross-compilation for Windows with mingw32

To compile with mingw32 under Linux:

sudo apt-get install mingw32
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-i586-mingw32msvc.cmake ...