Fix compilation on Mac when -std=c++11 flag is specified