Modernize code

- only import `import` from `Exporter` instead of inheriting from it (requires Exporter 5.57 which is in core since 5.8.3 but is also a dual module, so available from CPAN for older perls)
- drop usage of `use vars` in favor of `our` (requires 5.6)