This is necessary to avoid making opensc threaded, since then it can't be dlopened by a non-threaded program. Add patch comments. Set LICENSE (modified-bsd, verified via wdiff). This change is almost entirely due to manu@.