ToolLibGen: Scalable Automatic Tool Creation and Aggregation for LLM Reasoning