Use C++11 when compiling.