Fix: don't build not linked switches.