add const modifiers to prototypes