Tune automake options to avoid problems with newer versions

Automake >1.14 complains if makefiles are used in subdirs but
the subdir-objects option is not set.
Merge pull request #534 from jin-eld/automake-compatibility

Tune automake options to avoid problems with newer versions