Call pcntl_signal_dispatch() only if function exists

Signed-off-by: Andrew Phelps <andrew@phel.ps>