aspell const fix for llvm

Port over freebsd clang fix for llvm compilation issues.
Should fix #27411.