Bugfix in declaration of global doneVal when pipeline parallelization is on.
Merge branch 'performance' of github.com:dimitriv/Ziria into performance