fixes building library with some packages missing