Tools/Extractors: Fixed many false positive err=2 messages and fixed many compile warnings