fix cmake builds