add backwards compatible ways to add libraries