fixed ar extracting and compiler waiting.