Fixes player running in the differnt thread
Misc fixes to run examples/shell/