Fix compiler errors on linux