FFI2: invalid memory reference

I'm trying to do this example following also the ffi2 documentation. This is what I've got so far:

#lang racket

(require ffi2
         raylib/2d/unsafe)

(define rgui (ffi2-lib "raygui"))
(displayln (ffi2-lib? rgui))

(define GuiButton (ffi2-cast (ffi2-lib-ref rgui 'GuiButton)
                              #:to (ptr_t string_t . -> . boolint_t)))

(define button-rect (cpointer->ptr_t (make-Rectangle 24. 24. 120. 30.)))
(define show-message "#191#Show Message")

(module+ main
  (InitWindow 400 200 "raygui")
  (SetTargetFPS 60)
  (let loop ((show-message-box #f))
    (BeginDrawing)
    (ClearBackground RAYWHITE)
    (GuiButton button-rect show-message)
    (EndDrawing)
    (if (WindowShouldClose)
        (CloseWindow)
        (loop #f))))

There is a #t in the output; thus it seems like loading raygui worked. But the call to GuiButton produces an "invalid memory reference" error.

What am I doing wrong?