Fix 64bit pointer arithmetic warnings