Fix extension of static library
Fix MKIMPORT for msys-perl