Non è che ti manca lo switch:
-std=c++0x
nella terza e settima linea degli errori da te postati?