Expanding source because bozorth3 requires extensive patching to make it thread safe