Build import libs as .dll.a instead of .lib

This is MinGW convention.

Ref: a40116de256c281b4766196b062d367a6ac50727.