Copied over find_dll from mingw32ccompiler
Defines find_dll manually if not defined in mingw32ccompiler.