Fix code to compile with latest Rust

feature(globs) is only required for cfg(test) even if tests are not compiled.