Cleans up all the "MakeDelegateClass" functions and removes the obsolete "macoslibModule".