Add fallback getallheaders() implementation. Fixes #2.