unix port for CMake