Fix compile errors on linux