Please pull CMAKE and c++ improvements

Hey Kane,

I prepared the logging project so that it can be used within a CMake based project. 
I also did  a small change for being able to compile it with a c++ compiler.

Please pull the changes or give some feedback how to correct them.

Cheers,
Gernot