Compile with c++11 standard on gcc >=4.7