Fix non compiling code with g++