Fixes for " Sleep and join" example to compile