Fixed build script on PHP 5.3