replaced autotools with cmake

- too much effort to figure out autotools
- cmake build is not 1-1 with the autotools build yet