Issue #22090: Fix '%' formatting for infinities and NaNs.

--HG--
branch : 3.4
Merge 3.4.
Introduce and check for MPD_VERSION_HEX for precise management of builds
with an external libmpdec.

--HG--
branch : 3.4
Merge 3.4.