pass render function into window creation

`make` complained without this.