fixing warnings setting to stop c++11 warning