Added cmake support for generating Makefile