Fix build with newer gcc/clang (-std=c++11)