mdp needs the ncursesw headers to compile.
So make sure you have them installed:
+
- on Cygwin you need `libncursesw10` and `libncurses-devel`
+- on Raspbian (Raspberry Pi) you need `libncurses5-dev` and `libncursesw5-dev`
Now download and install mdp: