CMakeLists updated, now 100% working (see details)

-Added extra compilation flags as Quentin requested
-Fixed compilation mode switching bugs (i.e. 'delays' due to CMake
cached files)
-Now rebuilds (-j6) automatically when changing compilation mode
-Fixed typos in custom targets description

-Cleared main()