Compile fix for graphics device.
Compile fix for graphics_state