Fallback to stdlib urlparse

This fallback is necessary to maintain compatibility with the currently
lowest support Werkzeug version.