Updated tn5250 for OS X 10.8

Issue with segmentation fault fixed.