initial implementation of posix_spawn