Fixed copyright symbol.
Reversed order of pthread_cancel() and pthread_detach() calls.