Add --has-libtommath extension.

Enables use of a system libtommath, which is helpful for packagers.