fix compiler warnings in extended colour code

this should fix #79