Direct FFI bindings for OpenGL window and context management