Updated build script for PHP 5.3