Support for compilation on Mingw64

These patches allow Collage to be compiled with MinGW64 (4.7.4).

Testing on Linux using a cross-compile toolchain suggests that the library compiles and the tests link properly against the library.