xcode 6.1 compatibility update

I've updated the library to the new swift language modifications occurred in xcode 6.1