[m][2432] Add fix for building on FreeBSD by @bels, thanks!

Conflicts:
	src/shared/revision_nr.h