Qualify/cast values that are passed to jlimit. Old versions of
gcc, e.g. gcc-4.1.2, need this on linux