build system: Check for and work-around broken Perl_load_module().