Fix build for Visual Studio on Windows.

void * arithmetic is a gcc extension. Cast the pointer to avoid compilation errors.
Merge pull request #11 from mindw/master

Fix build for Visual Studio on Windows.