Added suppor for cross platform with CMake build file