Const correctness fixes.