Buildfix for headless on non-Windows.