Merge with upstream (http://hg.mozilla.org/ipccode)
Use posix_spawn instead of fork/exec to prevent crashes on MacOS Maverick.