Fixed #1. Now it works with Swift 1.1 compiler. Added OSX targets.