pki: Fix the build on OpenSolaris.