Fix OS X build, remove dangerous -1 on unsigned
Merge pull request #56 from Eyescale/master

Fix OS X build