Moved compilation into a separate app domain