Fixed CMake builds on Linux