Check for pcntl_signal support before invoking

The pcntl_signal call is only currently supported on *nix environments,
and not even Mac at that. Check to see if the function exists before
invoking it.