Displays revision diff number in config.h.
Fix compilation error for debug build.

Target revision: r499
lwlibav: Change the progress calculation of the index creation.