Compatability with wai-2.0.0

Fixes #2