Merge pull request #211 from mannol1/master

Fix bug
fix a few formatting bugs and simplify code a bit
put chatlogs in their own directory
try to end curses session gracefully on SIGSEGV
stderr redirect doesn't work as intended, add invalid command message when no sound
Add missing includes

Fixes compilation with musl libc
Merge pull request #213 from doughdemon/master

Add missing includes
Merge branch 'master' of https://github.com/Tox/toxic
don't show full path when sending files
re-adding until better solution found
fix filetransfer bug
use hangup cmd to cancel outgoing call requests
add ability to cancel file transfers
a few fixes and improve error messages
update file transfers for core changes
small fix
Fix ringing sounds