Fixes linux and CMake builds