need to link with -ldl on Linux when building statically
fix for mingw not playing nicely with libunbound configure, fix for correctly finding static libs on various operating systems