fixed build without thread support
Update this script to output diff files