Test no_shared_libs flag for MINGW.  Do not use -O2 in debug mode