build: Check for Perl modules we actually use.