fixed build error for g++