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.
Merge pull request #2 from iniq/check_pcntl_support

Check for pcntl_signal support before invoking