removed unnecessary (and wrong) cast
samples are no longer executed as part of the default 'make'
swapped usleep() in place of sleep() for ubuntu 13...
fixed samples that use libpthread themselves - I'm starting to resent what ubuntu are doing...