Revert "Converting to cmake"

This reverts commit 01bcb3a31da44340b34249aa92d2825305f6d486.
Reverted the broken CMake stuff

Works with just normal make now