Localizing globals and statics to make C programs thread-safe | IEEE Conference Publication | IEEE Xplore