fix on cmake build