Remove const qualifier from jl_ver_* functions returning int

Fixes #9511