Added C++11 code and proper cmake configs