Import changes required to get the example compiled succesfully

Mostly gory details related to QWG SVN -> GitHub migration