Fix PGO builds on non-MSVC

[#82213900]