setup.c: Fix some "symbol not declared" sparse warnings