Fix incompatible pointer conversion

This bug was not in original chipmunk repo.