issue 416: feature request for better posix support in drawPalette