[3.0] contrib: cddb: add gcc14 support
Since GCC14, GCC no longer allows implicitly casting all pointer types to all other pointer types. This behavior is now restricted to the
- type and its qualified variations.
https://www.gnu.org/software/gcc/gcc-14/porting_to.html#incompatible-pointer-types
This causes cddb fail to build on gcc14. This patch fixes that.
(cherry picked from commit 674d2da4)
(Had to remove some "non existent in 3.0.x" lines from the patch to fix merge conflict by the way)