Use NULL from cstddef

This fixes build when GIT_REV is not defined.
Merge pull request #4360 from rbalint/debian-build-fixes

Use NULL from cstddef