Make nock an optional dependency.

Fix build problem caused by pull request #427.