Optimizations and fixes

The optimized texture update has been applied to the text layer. Fixed
issues with the offset calculation. Textures must now set the height of
the update blocks, if they use the update rects. Fixed libs to use
OpenGL libraries on a GLWIN build.