Replace most Foundation imports with Darwin or nothing