Updated to latest rust master

Just ran bindgen again and added some casting for enums.