fix for glew 1.11

@jnygaard please check if this compiles and runs (if you have glew < 1.11, check version of glew with $glewinfo |head )