Fixed compatibility issues on linux