use the --std=c++0x flag to be compatible with gcc 4.6