Ok I found out : I needed to commit my changes in my git. Otherwise "-dirty" was automatically appended to the program's version at compile time. midori 0.4.0 compiles fine, I'll try to produce a correct patch.