Added glFlush() to render and setSize() to resize for OS X and Coin compatibility.