Adding ./configure script
More autoconf fixes