Fix framebuffer check on Windows.