Now compiles with -Werror=incompatible-pointer-types