Use [dev_dependencies.*] to reduce excessive recompilation

See rust-lang/cargo#523

Still doesn't solve the multiple recompilations during `make test` though.
Merge pull request #365 from bjz/examples

Use [dev_dependencies.*] to reduce excessive recompilation