typesafe_cb: 64 bit fixes.