trivial fix for compile warnings in 0.2.2.x

see branch osxcompile in my repo. Should get merged before next release