added basic autotools - tidied up