Minor bug fixes and package.xml update

Followed advices provided by @Michael Gauthier
(http://pear.php.net/pepr/pepr-vote-show.php?id=689&handle=gauthierm)
- Changed mbstring functions tests from function_exists() to
extension_loaded().
- Set "mbstring" as an optional dependency in package.xml
- Updated socket default size.