Fix the cmake build - patch by Xerxes RĂ„nby.