Making compiler flags correct independent of compile type
Fixing compile option and assertion disabling
Better check for testing in CMakeLists.txt
Removing useless semicolon