Fixes Linux compatibility issues