transfer to QT5 under osx s5

update QDataStream version
fix function to fit QT5

now gui can connect to gameserver correctly