Since recently, one can also install the new "libmypaint-v1" branch. It is not so different, but has several fixes. Among them, it fixes building with recent automake. (cherry picked from commit 1028345b)