fixes all errors except for lack of zpython

This patch set fixes all the samples except for 'zshell' ; I could not test the latter since I had trouble installing zpython