Fix warnings about const.