Refactors the windows import library section so that it uses a list, and remove a slightly unnecessary macro in release_lib