Use -std=c++0x instead of -std=c++11