Work around rust-lang/rust#4865

Shuffles around how exactly libc is used to work around a nasty bug in glob
imports. Unfortunately now requires users of the syntax extension to have an
`extern crate libc`.