Fix: include misc.h in gfx.h for uint definition