incorporate some fixes to koreader-base
pull Kobo fixes from koreader-base
Merge pull request #371 from hwhw/native-framebuffer

incorporate some fixes to koreader-base