add -std=c++11 when os is macos