check if pcntl functions exist.

Check if pcntl functions exist even if the extension is loaded.
pcntl_signal and pcntl_signal_dispatch are considered as "dangerous" functions and are most of time referenced in the variable 'disable_functions' in the php.ini.

This PR will check if functions can be called.