remove dependency on threads for core libraries