Fix incompatible pointer conversion

This bug is not in original chipmunk repo.