fixes for 16bpp framebuffers (Kobo)

A few fixes that relate to Kobo devices (16bpp framebuffers)