Fixed compile issues for compatibility with Xcode6-Beta3

Apple made some subtle changes to Swift in beta 3 that caused compilation errors/warnings when building this project.