Initial mingw support for cmake.

x86 mingw build seems to be working. Need x64 prebuilt binaries to test x64 mingw build. As for windows I needed different names for prebuilt binaries so cmake can find them. But instead of renaming I've created symlinks because I didn't want to touch existing Makefile.