Add sdata.o dependencies.
Silence some compile-time warnings.
Remove unused variables.