These changes make it easier to test headless rendering in macOS. I verified that this works using the frame_generator tool, however it requires the fixes in PR #2529.