Fix resolver implementation on Solaris.

Closes #766.