a bunch of these were missing casts  personally i would rather have gone in the other direction  to at least have  some  type checking from these damned macros but that would mean that source that builds fine for glibc and the bsds would not build on android including much of our own stuff  