Add some const qualifiers in the hopes it will fix clang C++14 mode failures.