Fixes for Kobos, viewports

Needs https://github.com/koreader/koreader-base/pull/283