lot of casts, added prototypes, missing includes and some true errors
I changed them so that they have CPPFLAGS += LEVEL(X)_CPP_WARNINGS instead. Kent