fixed not compiling with g++