Unix compatibility fixes.