use std=c++0x instead of -std=gnu++0x