[INC] Clean up TO_LONG_PTR use in ib_types.h.