Linux compatibility fix