Reworked compiler flag mess (now using c++11 for C++ code)