[build] Put shared automake code in Makefile.am.common