Fixed some autoconf related errors