minimal changes to framebuffer to complete build