Tag for release 4.0?

Hi,

I actually see the respective 4.0.0 tag.

Might be related to the way you clone the repositary. I remember issues compiling also a former specific version:
see: building branch 3.6.x ?

Perhaps the information in there is useful.