fix compiler warnings in extended colour code

this should fix #79
Same here.