mpd: fix build on darwin

Another hairy one with loads of dependencies.