src: define our own `kMaxLength` constant

Fixes v0.6.x build.