Use autotools

At the moment only removed cmake and added an makefile, but in future autotools shoud be used.