main: add some more const specifiers