Minor fix in Window and OpenGL examples