[corlib] Add back X509 support for watchOS.