Introduced "platform.h" file to isolate changes around <unistd.h> which doesn't exist on Windows