fix the DEBUG define by replacing the _gbc argument with GetDevice()