Move D_abs declaration to doomdef.h

inline functions are typically declared in the header file
Fix undeclared function and enum warnings

Also fixed a printf warning
Fix some more warnings, GL version now unsigned