Introduce 'make check' target.

This is an updated version of a previous pull request that will be closed presently. It mostly just brings it up to date with the current master of OpenPTV.

The feature is to stop building the 'check' executables on every make, and only build them on 'make check' invocation.