fix some pointer signedness issues (this was invalid C)