mpd: fix byte-order detection

Fixes #229.