Fix 'const type qualifier' warnings on GCC -Wextra