Patched php_apd for php 5.3 and 5.4
http://martinsikora.com/compiling-apd-for-php-54#fixing-apd-source-code