fix color definition bug, fixes #37

RGB_2_XCOLOR was defined *globally*... and global variables are fishy for a variety of reasons ;).