Remove void pointer arithmetic, it is not allowed by the standard and prevents clang compilation