Fix casting from __[u]intcap_t to pointer and capability types.