[2409.16526] APILOT: Navigating Large Language Models to Generate Secure Code by Sidestepping Outdated API Pitfalls