Fixes #2272, typo in CMakeLists.txt (thanks Boris Bendovsky!)
Fixes #2271, Add KD detection under CMake by Scott Percival