move/remove W_* macros

move W_ENDCOL to screen.c
remove the rest of the W_* macros
Remove unnecessary (int) casts and fix style
removed whitespace from  ROOT_UID define.