don't add libraries when they aren't needed