[dist] create an import library

'make ptest' didn't work because the import library wasn't created.
(Actually, MinGW doesn't need an import library.)