Correctly handle the "--first-run" CLI option.
Updated VLD library to v2.4rc2.
Fixed DEBUG configuration.
Fixed two memory leaks found by VLD.