fixing a few compile errors in CandidateElementExtractor