Fix warnings.. or clang made me do it
xchat: use CFLAGS instead of CPPFLAGS
separated the media out into media.h
new media.h
eliminated warnings (and found/fixed some bugs) from compiling with -W

used -Wreturn-type -Wcomment -Wpointer-sign -Wimplicit-function-declaration -Wparentheses -Wformat -Wunused-value
Merge branch 'master' into clang-fixup

Conflicts:
	src/listen.c