[cmake] add gcc flags to generate errors instead of warnings
[cmake] add gcc flags to generate errors instead of warnings

* gcc will generate errors instead of warnings for missing return values
and missing switch values
* improve compatibility with MSVC

poparteu/openMVG,poparteu/openMVG,poparteu/openMVG,poparteu/openMVG