CMakeLists: Add compiler flags enabling warnings, c++11 and optimizations.