fixed gl.h compile time errors in VS2013
bug fix: SFML2 example runtime error when application closes, caused by memory leaks