wined3d: Make device palettes dynamically allocated.