Adding gcc c++11 compatibility