--- Kid.pm.orig	2009-07-07 17:49:06.000000000 +0400
+++ Kid.pm	2009-08-09 18:30:24.000000000 +0400
@@ -311,6 +311,7 @@
 	$_ .= $libext if !/\Q$libext\E$/i;
 
 	my $secondpass = 0;
+	my $secondpass2 = 0;
     LOOKAGAIN:
 
         # look for the file itself
@@ -346,6 +347,11 @@
 	    }
 	}
 
+	# do another pass with lib & .dll if they used -l
+	if (!$found_lib and $thislib =~ /^-l/ and $GC and !$secondpass2++) {
+	    goto LOOKAGAIN if s/^(.*)$libext$/lib$1.dll$libext/;
+	}
+
 	# give up
 	warn "Note (probably harmless): "
 		     ."No library found for $thislib\n"
