fix various examples

- to not print anything
- wrong function names (or file name euclidian vs euclidean)
shareboost: don't print progress if not in debug mode
fix serialization of mask table
move more code into #ifdef PTHREAD