Got code to compile cleanly with gcc flags -ansi -pedantic -Wall