fix unsigned comparison bug in posix_spawn