Remove gratuitous const
Remove const qualifiers that are ignored by the compiler. These are superfluous at best, and may be misleading (and they generate warnings from -Wignored-qualifiers). Modify the build to enforce this going forward.
Since we're at it, also enforce -Wreturn-type, which sometimes catches code paths where control leaves a non-void function
without a proper value return and thus can help prevent bugs.