tests: Add installation of required packages in setup_machine.sh

This commits adds installing programs necessary for tests to the
setup_machine script.

This script was tested with CentOS 7, Ubuntu 12.04, Ubuntu 14.04 and
LinuxMint 17. On CentOS 6 a manual installation of some c++11 compiler
is required (e.g., g++ provided by the devtoolset-2-* packages).

Change-Id: If85ba02f856915d501fa5951cb539315478de1ab