Use new add_routes syntax if it is available

Fixes #47