Set property attributes on built-in objects and respect DontEnum.