fix for cmake build