Attach versioning info when linking libraries.