Do not use -std=c++11 if build with visual studio