add non-reentrant library