Move D_abs to doomdef, fix gcc warnings

d_inline was also made more universal(to support clang)
Fix a bunch of compiler warnings

Moves us closer to C++ compliance(though this isn't C++ code yet) and I
fixed a few bugs in the netcode that would have come up sooner or later.