added -D unused-imports to rustc flags

Attempt to fix #1480. I have no idea what I'm doing