CMake enhancements to support Linux builds