remove code generator dependency on POSIX