Fixed a bug where the Unity program would keep disconnecting on a Mac due to Windows specific code.