spline/bezier fix and support flat shading

Oh, it seems OpenGL ES 3.0 indeed adds support for the flat shader attribute. Feel free to either make runtime checks or just leave the #ifdef , we can clean it up later.