Generate cook program instead of cook++
Migrated the build process to autoconf.