Fix compile errors on Linux