on-the-fly rate controller.
Switch on-the-fly rate controller to use the variance instead of old
DCT coefficient based 'activity metric' for rate control so rate control
can setup without all DCTs first having been done.
Fix a number of minor errors causing compiler warnings