Fixed missing prompt after unread notification

Prompt didn't appear after displaying unread messages notification
Added peer id in user_info
Added user id in chat_info
fix small memory leaks in the function do_send_photo for the cases of invalid, empty or large file
add functions tstrndup (auto check return value of strndup calls)
don't output backtrace in out of memory case
fix #include "config.h" for all source files
remove useless #define _GNU_SOURCE from not using asprintf sources
fix some autoscan warnings
Merge pull request #37 from antma/master

checks strndup result & enhance configure.ac
restored _GNU_SOURCE for getline in FreeBSD
fix sending a lot of spaces in version string
Merge pull request #38 from antma/master

fix sending a lot of spaces in version string
Update README.md
strutures.c: fixed bad flags in get chat query
Merge branch 'master' of github.com:vysheng/tg
improve portability by removing rdtsc calls
https://github.com/vysheng/tg/issues/8
Merge remote-tracking branch 'upstream/master'
use rdtsc for seeding prng only at i386 and x86_64 platforms
https://github.com/vysheng/tg/issues/8
Fixed load audio