added -std=gnu++0x compiler flag