Add a little protection around the pcntl_signal code because that library isn't available on OSX