Bugfixing build- and deployment files

Add gd2, curl + pdo_mysql extension to support magento.