first of all... PHP5 extensions are not compatible with PHP4,
Further more, different versions of PHP5 extensions are not compatible with other versions of PHP5. they need to be compiled for the same version.
This is due to internal changes in the engine.
for the second question it is not really what you want but may work as a workaround: http://www.php.net/manual/en/book.apc.php