Fixed compatibility issues with Linux