rts: Add casts to prevent compiler warnings in printfs.