[rw] Fix compilation on 64-bit environments