fix `error c2036: 'void *': Unknown size` on MSVC