Generate import libraries with the right name right away instead of using an intermediate .spec.def file.
Added an implementation of mlang.dll and test cases for it.