Fixes for running under perl 5.8.
Fixes issue #68.