Remove JS 1.8.0 related patches
Fix compilation with threadsafe enabled