Fix a compilation issue when math.h is included before format.h