ENH: If libraries are built statically, do not import dll on windows