add file actions support to posix_spawn