Fix a segfault when creating an import library with 0 exports.