Changed from makefile to cmake.

This is not really complete, i still want to add so that you can make
debug to get -Wall and -g (maybe a few more).

And im also not sure that im doing everything the correct way but hey~!
it works! :D