improved handling of library versioning