graph: use OpenGL types throughout

Because you always know when someone will try compiling this on a coffee machine with big endian processor and OpenGL implementation liking 64 bit integers or something.