Use posix_spawn instead of fork/exec to prevent crashes on MacOS Maverick.