fix c++11 detection

this fixes the c++11 detection so it works properly on linux and any platform where c++11 is already enabled