added autotools mechanism for build