Fix pointer int conv warnings
Fixes -Wpointer-to-int-conversion and -Wint-to-pointer-conversion warnings in the state tracker and compositor when building 32-bit. Think this should be all of them now.
Fixes -Wpointer-to-int-conversion and -Wint-to-pointer-conversion warnings in the state tracker and compositor when building 32-bit. Think this should be all of them now.