Swift syntax updates to resolve compile errors (6.1 6A1052d)

This is to resolve compile errors in the latest Xcode and Swift compiler. Looks like Apple changed some signatures and started enforcing unwrapping optionals. 

Unrelated, the Pod doesn't compile, although that could be because Xcode is being cranky.