resolve some pointer signedness warnings