Fixes Linux compatibility issues.