Makefile.am: use subdir-objects

This should work across more versions of automake

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>