Use AM_ prefix in Makefile.am

Fixes the build process in later versions of automake
Merge remote-tracking branch 'benburry/automake'