improve autotools

fix #1 :)