Removed as much as Core Foundation and C strings as possible. Removed also some useless optional.