Add some missing const qualifiers.