cmake build fix