Checks if mongo pecl module has been defined. Related to #783
Checks if pear/pecl/php module has been defined. Fixes #783