fixed the make dist issue, by moving AM_INIT_AUTOMAKE just after AC_INIT (it was previously called too late)