OSC: Fix function not being delcared.
Resolve 'const qualifier' warnings.