fix: various fixes for kindle dxg

This relies on https://github.com/koreader/koreader-base/pull/239