Add quick'n'dirty cmake support

It should be improved to check for libraries and compiler
support etc