fix the cmake build on BG/P