fix building of Perl modules stand-alone