changed -std=gnu++11 compiler flag to the older gnu++0x so that this will compile on gcc 4.6