Fix #167 incompatible pointer types warnings