remove macro for WCA_COMPONENT_INDEX since it is now defined in another header (WcaMsgs.h)
make macro values typed, for better compiler type checking
use explicit type conversion (makes clang happy)
spacing; use ERROR where appropriate