Thanks @techee. I also use gtk-osx for another project and had a very similar problem https://github.com/grisbi/grisbi/commit/6def4763cb92a1bfb71a01d9256146ee2aac....
It is problematic that gtk-osx _maintainer_ does not want to also maintain the "example" codes.