Clang compile fix (const function)

Clang 3.5 doesn't like this.