Fixed pthread_cancel() error in freerdp "rail" plugin.