Work around extractall bug in older versions of Python

Python bug: http://bugs.python.org/issue4710
Refs #200
Merge pull request #203 from twpayne/work-around-python-extract-all-bug

Work around extractall bug in older versions of Python
Add ol.DeviceOrientation