Fix C++11 flags for MingW

Also replace all 'WIN32 AND NOT CYGWIN' with 'WIN32'. Since cmake
2.8.4 WIN32 doesn't include CYGWIN.

Change-Id: Ie93fa8a79daabcc3515e00cd1f95b76041417eb6