Make url template tags forward compatible with Django 1.5