fix compilation errors on BG/Q