Change minimum Perl version back to 5.10 and fix compatibility.
Add .build to .gitignore