Fixing compile errors on linux