Restructure the lib directory to avoid name collisions.