Fix MKIMPORT for msys-perl
Fix extension of static library