added temporary fix for Swift 1.1 compiler on OS X

There is an inconsistency between the documented API and what the Swift
compiler expects on OS X. Note that on iOS, the Swift compiler is
consistent with the documented API.

Hopefully this will be fixed with the final release of Xcode 6.1.