Fix building with Clang.

* Return NULL for function with return type "void *".

GCC seems to be more permissive in this regard, but it is good to be more explicit anyway. Tested on Mac OS X 10.8.x with Xcode 4.5.2, Clang 4.1.