Use [dev_dependencies.*] to reduce excessive recompilation

See rust-lang/cargo#523

Still doesn't solve the multiple recompilations during `make test` though.