GCC 14 now enforces strict cv-qualifier check by default. This patch fixes all the cv-qualifier violations. This change is adapted from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075067
Signed-off-by: Pablo Lezaeta Reyes <prflr88@gmail.com>