Support Perl 5.12 and some tools.

Support version 5.12 by using the older lexical package syntax, and
use a string for the version number.