Tweaked CMakeLists.txt for MingGW.

Untested.