CMake with Autotools

Ok, I brought back the autotools stuff :)

Sorry for doing such an extreme change in the first place.