egl/haiku: fix synchronization problems, add missing header
Fixes remaining problems in applications that do not unselect/select OpenGL context on each render cycle.
egl/haiku: fix synchronization problems, add missing header
`st_context_invalidate_state` call is required when changing buffer attachments.
Including header with BBitmap class definition is required to properly
call C++ destructor.