Fix to compile with rust nightly

- Sprinkle `'static` on `Box`es
- `Result.expect()` -> `Result.ok().expect()`
Merge pull request #1 from japaric/fix

Fix to compile with rust nightly