Updated tn5250 for OS X 10.8

Fixed "Segmentation fault: 11" issue on OS X