Fix build error with g++