Improve cmake to do autoconf and ./configure automatically.