fix linux build issues with c++11