Change build system from autconf/automake to cmake.