some improvements for older gl versions

I successfully ported OGLplus for using with Marmalade. Here are a bit of changes which I think will be helpfull.
added guards for using shapes without GL_PRIMITIVE_RESTART
added workaround for using shapes::ShapeWrapper without VAO
removed some compiler warnings (force cast to bool)