Update of the build system

- Added correct handling of return codes from cmake
  in the configure.py script.
- Added dependencies and requirements for example harnesses.
- Reimplemented the code checking for harness requirements
  and adding harness dependencies to be more scalable.
- Updated the requirements of some of the examples.