Fix package definition to suit older perls:

Using the "package {}" syntax was removed so it will work on even
older versions of perl. That's at least what we write in the change
log. The real reason is that we want more tests to pass. :P