mpd: fix build with non-Apple GCCs

Fixes #34081.