Fix #1480, added -D unused-imports to rustc flags