Fixed crashing issues in JoyNet which were caused by falsely assuming the size of 'short' is 16-bits and 'long' is 32-bits. The crashing manifested on my 64-bit Mac build, but I'm sure it would affect any 64-bit system or any system that used different sizes for these types. The different sizes were causing buffer overruns on my Mac. Also, this issue would cause systems with different sized types to be unable to communicate properly during network play.