fix bug #61372 (undefined symbol: Z_ADDREF_P - possibly wrong dependency?)