conditional update gcc or clang
pass -std=c++ when clang is used