fix compiler warnings in extended colour code

this should fix #79
My eyes hurt a bit here.