Remove rewrites for Doctrine + Herrera, add ANT custom-lib variable + add custom pthreads PECL packages