Unix compatibility fix