Fix build in msvc 2013

Doesn't like void* not being cast