Silence compiler warnings on OS X.

Great project! I'm using it to convert into OS X CGBezierPath.

The Xcode 6.1.1 compiler indicated some warnings, so I made the changes and they seem pretty sensible. I think they should be appropriate on all platforms.