Fixed compiler warnings.
Fixed most of the Sparse warnings.
All Sparse errors fixed, except some warnings about variable length arrays.
Changed so only system header files uses the syntax '#include <file>'.