changes made to compile code with gcc