Fix Phi compilation errors.