Fix gldebug compile

.. by adding a simple cast