BLD: Fix msvc error C2036: 'void *' : unknown size

(cherry-picked from 827083acfa)