Fix the UB triggered on newer GCC's.