constify: constify some variables / functions

Some warnings spit out by gcc, fix em.