use c++0x to fix segfault on Mac