Fixed up compilation errors (and crate attribute warnings) with latest rustc 0.9-2272-gd79fbba
With plenty of help from cmr, eddyb, strcat, kimundi and pczarn on #rust (irc.mozilla.org). Thanks to them.