Turn on -import-cf-types and fix the standard library.
Turn on -import-cf-types and fix the standard library.

If this works out, I'll rip out the frontend option.
If this doesn't work out, please just revert this patch.

Swift SVN r17547

MukeshKumarS/Swift,jtbandes/swift,MukeshKumarS/Swift,mightydeveloper/swift,uasys/swift,jtbandes/swift,stephentyrone/swift,alblue/swift,SwiftAndroid/swift,practicalswift/swift,hughbe/swift,milseman/swift,stephentyrone/swift,CodaFi/swift,JaSpa/swift,IngmarStein/swift,therealbnut/swift,jmgc/swift,karwa/swift,dduan/swift,bitjammer/swift,khizkhiz/swift,austinzheng/swift,roambotics/swift,slavapestov/swift,parkera/swift,russbishop/swift,sschiau/swift,sschiau/swift,jtbandes/swift,jckarter/swift,ahoppen/swift,tinysun212/swift-windows,LeoShimonaka/swift,kentya6/swift,adrfer/swift,gottesmm/swift,sdulal/swift,amraboelela/swift,uasys/swift,kentya6/swift,LeoShimonaka/swift,JaSpa/swift,ahoppen/swift,kentya6/swift,tardieu/swift,Jnosh/swift,felix91gr/swift,slavapestov/swift,felix91gr/swift,xedin/swift,jtbandes/swift,danielmartin/swift,Ivacker/swift,LeoShimonaka/swift,huonw/swift,zisko/swift,swiftix/swift.old,hooman/swift,johnno1962d/swift,tkremenek/swift,practicalswift/swift,alblue/swift,atrick/swift,ken0nek/swift,khizkhiz/swift,huonw/swift,airspeedswift/swift,aschwaighofer/swift,Ivacker/swift,djwbrown/swift,parkera/swift,shajrawi/swift,roambotics/swift,OscarSwanros/swift,sdulal/swift,benlangmuir/swift,OscarSwanros/swift,zisko/swift,codestergit/swift,frootloops/swift,shajrawi/swift,tkremenek/swift,modocache/swift,KrishMunot/swift,Ivacker/swift,benlangmuir/swift,calebd/swift,JGiola/swift,tkremenek/swift,natecook1000/swift,gottesmm/swift,parkera/swift,huonw/swift,kusl/swift,cbrentharris/swift,slavapestov/swift,manavgabhawala/swift,austinzheng/swift,codestergit/swift,uasys/swift,ben-ng/swift,CodaFi/swift,zisko/swift,gottesmm/swift,gregomni/swift,tardieu/swift,rudkx/swift,bitjammer/swift,nathawes/swift,lorentey/swift,felix91gr/swift,glessard/swift,rudkx/swift,tinysun212/swift-windows,swiftix/swift.old,shahmishal/swift,nathawes/swift,practicalswift/swift,brentdax/swift,emilstahl/swift,allevato/swift,felix91gr/swift,apple/swift,nathawes/swift,JGiola/swift,karwa/swift,dreamsxin/swift,ben-ng/swift,mightydeveloper/swift,bitjammer/swift,SwiftAndroid/swift,IngmarStein/swift,calebd/swift,danielmartin/swift,rudkx/swift,ken0nek/swift,arvedviehweger/swift,gmilos/swift,emilstahl/swift,deyton/swift,natecook1000/swift,SwiftAndroid/swift,rudkx/swift,sdulal/swift,sschiau/swift,parkera/swift,jopamer/swift,practicalswift/swift,ben-ng/swift,Jnosh/swift,harlanhaskins/swift,sdulal/swift,tardieu/swift,kperryua/swift,allevato/swift,uasys/swift,gribozavr/swift,austinzheng/swift,atrick/swift,kstaring/swift,brentdax/swift,djwbrown/swift,jmgc/swift,shajrawi/swift,hooman/swift,dduan/swift,tinysun212/swift-windows,swiftix/swift.old,therealbnut/swift,KrishMunot/swift,lorentey/swift,shahmishal/swift,shahmishal/swift,kstaring/swift,swiftix/swift,therealbnut/swift,stephentyrone/swift,hooman/swift,brentdax/swift,xedin/swift,uasys/swift,xwu/swift,xedin/swift,jmgc/swift,deyton/swift,xwu/swift,tjw/swift,calebd/swift,ken0nek/swift,frootloops/swift,alblue/swift,devincoughlin/swift,frootloops/swift,JaSpa/swift,amraboelela/swift,jckarter/swift,karwa/swift,tinysun212/swift-windows,atrick/swift,karwa/swift,IngmarStein/swift,harlanhaskins/swift,zisko/swift,gribozavr/swift,CodaFi/swift,JGiola/swift,cbrentharris/swift,felix91gr/swift,gmilos/swift,sdulal/swift,devincoughlin/swift,gribozavr/swift,bitjammer/swift,felix91gr/swift,kperryua/swift,airspeedswift/swift,kperryua/swift,djwbrown/swift,milseman/swift,lorentey/swift,harlanhaskins/swift,KrishMunot/swift,bitjammer/swift,tjw/swift,shahmishal/swift,harlanhaskins/swift,manavgabhawala/swift,johnno1962d/swift,swiftix/swift,stephentyrone/swift,tkremenek/swift,kperryua/swift,felix91gr/swift,adrfer/swift,swiftix/swift.old,kusl/swift,allevato/swift,jckarter/swift,gribozavr/swift,austinzheng/swift,return/swift,danielmartin/swift,amraboelela/swift,Ivacker/swift,Jnosh/swift,jmgc/swift,xwu/swift,emilstahl/swift,djwbrown/swift,jckarter/swift,gmilos/swift,mightydeveloper/swift,amraboelela/swift,parkera/swift,ben-ng/swift,emilstahl/swift,ben-ng/swift,gribozavr/swift,brentdax/swift,ahoppen/swift,apple/swift,deyton/swift,jtbandes/swift,jmgc/swift,xedin/swift,swiftix/swift,milseman/swift,OscarSwanros/swift,bitjammer/swift,tkremenek/swift,tinysun212/swift-windows,MukeshKumarS/Swift,modocache/swift,roambotics/swift,arvedviehweger/swift,devincoughlin/swift,ben-ng/swift,sschiau/swift,jckarter/swift,uasys/swift,KrishMunot/swift,return/swift,natecook1000/swift,adrfer/swift,modocache/swift,kentya6/swift,stephentyrone/swift,CodaFi/swift,gregomni/swift,xwu/swift,jckarter/swift,natecook1000/swift,ken0nek/swift,devincoughlin/swift,therealbnut/swift,atrick/swift,hooman/swift,kusl/swift,gmilos/swift,hughbe/swift,codestergit/swift,hooman/swift,hughbe/swift,shajrawi/swift,JGiola/swift,russbishop/swift,frootloops/swift,return/swift,return/swift,lorentey/swift,nathawes/swift,gmilos/swift,milseman/swift,Ivacker/swift,shajrawi/swift,gregomni/swift,benlangmuir/swift,therealbnut/swift,JaSpa/swift,stephentyrone/swift,jopamer/swift,gregomni/swift,russbishop/swift,lorentey/swift,CodaFi/swift,mightydeveloper/swift,kusl/swift,shajrawi/swift,devincoughlin/swift,SwiftAndroid/swift,austinzheng/swift,swiftix/swift,ken0nek/swift,dduan/swift,jckarter/swift,adrfer/swift,kstaring/swift,harlanhaskins/swift,calebd/swift,ahoppen/swift,dduan/swift,kperryua/swift,roambotics/swift,stephentyrone/swift,gregomni/swift,tkremenek/swift,codestergit/swift,swiftix/swift.old,karwa/swift,frootloops/swift,dduan/swift,slavapestov/swift,lorentey/swift,arvedviehweger/swift,brentdax/swift,ahoppen/swift,KrishMunot/swift,jtbandes/swift,jopamer/swift,zisko/swift,cbrentharris/swift,frootloops/swift,glessard/swift,devincoughlin/swift,Jnosh/swift,danielmartin/swift,natecook1000/swift,therealbnut/swift,slavapestov/swift,tardieu/swift,hughbe/swift,jopamer/swift,glessard/swift,manavgabhawala/swift,kusl/swift,xwu/swift,emilstahl/swift,manavgabhawala/swift,kstaring/swift,adrfer/swift,airspeedswift/swift,mightydeveloper/swift,LeoShimonaka/swift,aschwaighofer/swift,deyton/swift,khizkhiz/swift,practicalswift/swift,airspeedswift/swift,danielmartin/swift,xedin/swift,OscarSwanros/swift,airspeedswift/swift,atrick/swift,huonw/swift,gottesmm/swift,calebd/swift,brentdax/swift,austinzheng/swift,gottesmm/swift,sschiau/swift,deyton/swift,shahmishal/swift,gribozavr/swift,tinysun212/swift-windows,uasys/swift,swiftix/swift.old,rudkx/swift,IngmarStein/swift,khizkhiz/swift,tjw/swift,cbrentharris/swift,emilstahl/swift,OscarSwanros/swift,SwiftAndroid/swift,LeoShimonaka/swift,jopamer/swift,sdulal/swift,gregomni/swift,glessard/swift,manavgabhawala/swift,swiftix/swift,manavgabhawala/swift,shahmishal/swift,milseman/swift,gribozavr/swift,aschwaighofer/swift,karwa/swift,allevato/swift,Ivacker/swift,xwu/swift,hooman/swift,lorentey/swift,allevato/swift,alblue/swift,therealbnut/swift,Ivacker/swift,mightydeveloper/swift,frootloops/swift,emilstahl/swift,codestergit/swift,benlangmuir/swift,karwa/swift,practicalswift/swift,danielmartin/swift,lorentey/swift,sschiau/swift,jmgc/swift,tjw/swift,xedin/swift,austinzheng/swift,cbrentharris/swift,gribozavr/swift,aschwaighofer/swift,huonw/swift,roambotics/swift,kentya6/swift,jopamer/swift,codestergit/swift,return/swift,airspeedswift/swift,ken0nek/swift,roambotics/swift,atrick/swift,IngmarStein/swift,kstaring/swift,ben-ng/swift,kusl/swift,apple/swift,arvedviehweger/swift,adrfer/swift,glessard/swift,aschwaighofer/swift,gmilos/swift,tjw/swift,tardieu/swift,amraboelela/swift,KrishMunot/swift,modocache/swift,sdulal/swift,modocache/swift,johnno1962d/swift,kusl/swift,Jnosh/swift,JaSpa/swift,sschiau/swift,kusl/swift,JGiola/swift,dduan/swift,tardieu/swift,MukeshKumarS/Swift,johnno1962d/swift,SwiftAndroid/swift,kperryua/swift,russbishop/swift,nathawes/swift,swiftix/swift.old,aschwaighofer/swift,modocache/swift,OscarSwanros/swift,MukeshKumarS/Swift,harlanhaskins/swift,arvedviehweger/swift,calebd/swift,SwiftAndroid/swift,kentya6/swift,xedin/swift,dduan/swift,LeoShimonaka/swift,kentya6/swift,modocache/swift,benlangmuir/swift,JaSpa/swift,xwu/swift,djwbrown/swift,harlanhaskins/swift,practicalswift/swift,apple/swift,calebd/swift,bitjammer/swift,gottesmm/swift,allevato/swift,Jnosh/swift,apple/swift,jtbandes/swift,LeoShimonaka/swift,deyton/swift,zisko/swift,CodaFi/swift,alblue/swift,MukeshKumarS/Swift,shajrawi/swift,IngmarStein/swift,alblue/swift,russbishop/swift,kentya6/swift,devincoughlin/swift,jopamer/swift,dreamsxin/swift,shajrawi/swift,cbrentharris/swift,arvedviehweger/swift,swiftix/swift.old,khizkhiz/swift,devincoughlin/swift,parkera/swift,ahoppen/swift,johnno1962d/swift,OscarSwanros/swift,milseman/swift,amraboelela/swift,JaSpa/swift,shahmishal/swift,codestergit/swift,parkera/swift,slavapestov/swift,CodaFi/swift,airspeedswift/swift,parkera/swift,shahmishal/swift,glessard/swift,johnno1962d/swift,hooman/swift,tjw/swift,arvedviehweger/swift,hughbe/swift,kstaring/swift,djwbrown/swift,Ivacker/swift,aschwaighofer/swift,karwa/swift,manavgabhawala/swift,JGiola/swift,rudkx/swift,allevato/swift,hughbe/swift,tinysun212/swift-windows,djwbrown/swift,huonw/swift,mightydeveloper/swift,cbrentharris/swift,kperryua/swift,ken0nek/swift,nathawes/swift,khizkhiz/swift,natecook1000/swift,gottesmm/swift,tardieu/swift,LeoShimonaka/swift,tjw/swift,kstaring/swift,Jnosh/swift,johnno1962d/swift,return/swift,slavapestov/swift,practicalswift/swift,russbishop/swift,nathawes/swift,mightydeveloper/swift,apple/swift,russbishop/swift,jmgc/swift,gmilos/swift,benlangmuir/swift,khizkhiz/swift,xedin/swift,MukeshKumarS/Swift,zisko/swift,brentdax/swift,alblue/swift,KrishMunot/swift,adrfer/swift,hughbe/swift,sdulal/swift,return/swift,swiftix/swift,deyton/swift,huonw/swift,emilstahl/swift,amraboelela/swift,swiftix/swift,milseman/swift,sschiau/swift,natecook1000/swift,cbrentharris/swift,tkremenek/swift,IngmarStein/swift,danielmartin/swift