Fix two conversions of pointers to integer in the GUI.

Use uptr instead of 32bit integers fixes the issue of compiling.