Use unsigned ints instead of void* for various buffers

(temp hack for osx compilation)