add Makefiles for Chatting
update for cross compile