Basic support for a version parsing test

The Perl script extract the version parsing source into a new .c file,
compiles it, and runs through a table of tests.

At this point, the tests fail, because the code doesn't handle 0.9.8za.
Handle the crazy scheme used in 0.9.8 beyond y
also test y & zb for safety's sake
Merge branch 'fix_versions_for_za'