--with-build-info added to configure

The default build info for stable releases is empty, and git commit
hash for release candidates. Build info can be read with --version
from all commandline utilities.