modified in order to generate appropriate import library (.lib)