massive patch to sextractor build for threading