automake: fix unversioned links during package build