Update to using cmake 3.1
Fix minor typo.
Merge pull request #302 from leapmotion/feature-cmake31

Update to using cmake 3.1