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