[build] revert build system from cmake to autoconf