fix for c++14 flag not supported by gcc4.7