Issue #22090: Fix '%' formatting for infinities and NaNs.
Introduce and check for MPD_VERSION_HEX for precise management of builds
with an external libmpdec.