I wonder if having the webcam always on but piping to /dev/null would prevent a trojan from accessing it...
I also wonder if plugging a 3rd party mic into line-in and switching it off would have a similar effect for the mic.
You can never be sure unless your fix is physical.