Updated to work with rust 0.11 nightly (Aug 12th, 2014)

Fixes compiler errors with latest version of rustc (as of August 12th, 2014). Example runs correctly. My local examples run correctly.