Using C++11 and warnings enabled

Add to CMakeLists.txt that C++11 should be used and every warning should
be printed