Ensure indexes for problem/polygon db
Skip compilation for already compiled sources.