Add default thread and connection pool factory implementations.