perl: avoid *.pmc and fix Error.pm further