Update for Rust language changes

Tested with mozilla/rust@52769b6 and bjz/glfw-rs@8cecdf1a.