Cleaned up various warnings in the graphics components.