Fixing compilation issues on linux