do portable fixes to posix utilities