Port configure script to Node, step 5: check requirements.

Progress on #7.
Merge pull request #198 from nicksay/build-with-node-5

Port configure script to Node, step 5: check requirements.