Fixing issues preventing comipling on linux