Merge pull request #238 from itollefsen/autotools

configure changes and improvements