Add libtool versioning rules to relevant Makefile.am