this was already reported and fixed upstream https://github.com/MusicPlayerDaemon/MPD/issues/1030 and same ebuild but for latest version (0.23.4) builds fine for me (with additional dev-libs/libfmt install)
0.23.5+ is in tree