Build and WGL fixes.