fixed phar compiler so that it will actually succeed in building API phars