fix for latest rust

Latest rust compiler changed errno to uint.