Use explicit casts to fix mac clang c++ compiler errors.

There are errors when compiling concurrency kit header files with the c++ compiler on Mac OS X.  c++ requires explicit casts from void* variables.  This fix includes those casts.