Fix CMake build.
Merge pull request #497 from ImperatorPrime/master

Fix cmake build.