Auto merge of #787 - vojtechkral:master, r=alexcrichton
Auto merge of #787 - vojtechkral:master, r=alexcrichton

Fix kqueue filter consts type on NetBSD [WAS: Provide EV_SET]

Using BSD kqueue's `kevent` structure is tedious, because some BSD variants define the structure slightly differently. This forces user's code to differentiate between BSD variants and initialize `kevent` accordingly, which is annoying and error-prone.

For an example, refer to [MIO](https://github.com/carllerche/mio/blob/master/src/sys/unix/kqueue.rs#L38).

This is an attempt to fix it - provide a ctor function with the same signature across BSD variants.

Is an `impl` piece for a C structure allowed in libc?

**edit:** I noticed the `kevent` function has a similar problem, maybe I should include a fix for that too...
**edit:** ^ Done

rust-lang-nursery/libc,cactorium/libc,rust-lang-nursery/libc,rust-lang/libc,rust-lang/libc,cactorium/libc,rust-lang-nursery/libc,rust-lang/libc,cactorium/libc