• Fix nightly warnings related to lifetimes

    The following warnings appear:
    
    ```
    src/platform/mod.rs:7:5: 7:56 warning: the trait `core::marker::Sized` is not implemented for the type `Self` [E0277]
    src/platform/mod.rs:7     fn create_headless() -> Result<Self, &'static str>;
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/platform/mod.rs:7:5: 7:56 help: run `rustc --explain E0277` to see a detailed explanation
    src/platform/mod.rs:7:5: 7:56 note: `Self` does not have a constant size known at compile-time
    src/platform/mod.rs:7     fn create_headless() -> Result<Self, &'static str>;
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/platform/mod.rs:7:5: 7:56 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
    src/platform/mod.rs:7     fn create_headless() -> Result<Self, &'static str>;
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/platform/mod.rs:7:5: 7:56 note: required by `core::result::Result`
    src/platform/mod.rs:7     fn create_headless() -> Result<Self, &'static str>;
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ```
    
    ...because of:
    
    rust-lang/rfcs#1214
    frewsxcv committed Sep 2, 2015