Fix older autoconf/automake that don't work with AC_CONFIG_MACRO_DIR.

Fixes #114. Patch by @kvishnivetsky.