Fixed compilation with g++ by enabling c++11