RenderWindow build fix

A recent merge caused a build issue. I also const'd some stuff.