fix color parsing on 32bit systems