fix for missing unix2003 compat functions in xcode