fix cmake builder for waffle/piglit

Several deficiencies were fixed:
 - extra definitions had to be passed for waffle
 - PKG_CONFIG_PATH had to be set
 - CMAKE_INSTALL_PREFIX had to be set
 - added ccache
 - added make install to build_root