OTHER: Fix constness warning in perl client lib.
OTHER: Use correct int-type for hv_iternextsv in perl clientlib.
OTHER: Replace some deprecated methods in perl clientlib.