Add multi-Emerge thread support