Fix generation for wgl