fix a miscalculation for physical rect coordinates
further addition to rotated rect calculation: adapted width/height
rotation correction for Kobo framebuffers
Merge pull request #99 from hwhw/ffi-framebuffer-native

Framebuffer features/fixes for Kobo
fix reflow-to-native position transform
This patch depends on koreader/libk2pdfopt#17.
fix compilation complains of GCC 4.8.1 on Ubuntu Saucy