Replaced c++11 with c++0x for compatibility with Ubuntu 12.04.