Added missing maya includes.
Fixed using precompiled headers.
Fixed shadows,light bleed in some maps but unmodified vanilla also has this,
seems to be a precision bug somewhere.
moved some of the sys headers to idlib because they are used globally.
removed some dead code.
added several macros to ease porting to other OS.

Signed-off-by: revelator <ralphengels@gmail.com>