Replace os::glob with extra::glob, which is written in rust,
fixing issue #6100.
auto merge of #8914 : Dretch/rust/native-glob, r=alexcrichton

This is #8201 with a bunch of amendments to address the comments (and re-based).