Fix example_startup_trace build on windows

trace_data[0] is technically undefined behavior if trace_data is empty
(which happens on windows because IPC do not work, but can also happen
on linux if the system tracing service has not been started).

unistd.h does not exist on windows and is unused on linux.

Startup tracing is not supported on windows, because the system backend
does not work there, but this at least fixes the build.

Change-Id: I55cab3832c05a90c6baaceec301ed4b4dcb030cc
diff --git a/examples/sdk/example_startup_trace.cc b/examples/sdk/example_startup_trace.cc
index a8af67b..1cf3799 100644
--- a/examples/sdk/example_startup_trace.cc
+++ b/examples/sdk/example_startup_trace.cc
@@ -33,7 +33,6 @@
 #include <perfetto.h>
 #endif
 
-#include <unistd.h>
 #include <fstream>
 #include <iostream>
 #include <thread>
@@ -97,7 +96,8 @@
   std::ofstream output;
   const char* filename = "example_startup_trace.pftrace";
   output.open(filename, std::ios::out | std::ios::binary);
-  output.write(&trace_data[0], static_cast<std::streamsize>(trace_data.size()));
+  output.write(trace_data.data(),
+               static_cast<std::streamsize>(trace_data.size()));
   output.close();
   PERFETTO_LOG(
       "Trace written in %s file. To read this trace in "