const.c-related improvements.

Taking care of symbols.
Adding const qualifier where applicable and easy. This is first pass.