Fixed CMake builds on Linux
Merge pull request #693 from seanpaultaylor/next

Fixed CMake builds on Linux