improve import-library macro