Added a CMakeLists.txt file to include in other projects
Some (hopefully downwards compatible changes) in order to use
it on non-Arduino platforms