Cleanup unused threads build configurations