Removes all globals (except for vendor lib)