Updated flags for different build types to prevent that build type Debug compiled with -02. Default build type is set to RelWithDebInfo which maches the previous used flags, -g -02.̈́
Not set build type with Visual Studio.
Merge pull request #368 from perroe/cmake_build_type_update

Cmake build type update