fix pointer type mismatch and misplacement of const
[musl] / include / malloc.h