Move compilation to worker threads WIP