cmake updates for mingw32

mingw32 fix for mongoose