Fix for RT#82715

Also add CONFIGURE_REQUIRES and better Makefile.PL