Fix static CRT selection.
Fix CFLAGS for static-CRT build.

Setting the variables to only "/MT(d)" resets all other flags to their defaults, so the debug build used release flags.
Merge branch 'fix-win-build'
Merge pull request #206 from chrullrich/fix-win-build

Fix CMake configuration for Windows build
Merge remote-tracking branch 'origin/master'