nohup: fix for latest Rust using terrible hacks

This is horribly hacky (I basically copied the struct definitions from the Rust repo), but I'm hopeful that the [issue](https://github.com/rust-lang/rust/issues/18897) will be fixed soon.