Replace autotools with cmake

This commit replaces autotools with cmake as the build tool