Moved extension-dir detection for php to template file.
Added including build essential recipe for installing with pecl; changed directory for xdebug.ini to ext_conf_dir; added symlink for xdebug.ini
Changed dependencies and version.