cmake build fix on linux