Fix compilation errors on Linux