Fix some OpenGLDevice warnings for Release config