using Gradient in primitivesrenderer as well
factored out gradient code from PolyFiller
fixed installation order and links for cgi-demo
bumped version to 0.5.41~svn
Version 0.5.40
bumped version to 0.5.40
performance tuning
replaced getColorIndex() with cast operator to uint32_t
helper macro ALPHAOFIDX
style fix