all code now compiles by g++