more CMake tweaks to allow detection on OS X
added license to CMake