Add check for setlocale()

In wide char mode it is important to be sure that setlocale() function
succeed.
Fix configure for Free BSD

* seems that /usr/local is not in the default ld path on FreeBSD, so add
  it manually

* search for wget_wch instead of get_wch, on FreeBSD get_wch seems to be
  available as a macro, which does not automatically mean that wide char
  support is really available
Fix for the "bad character" when doing backspace in chat window

Backspace was printing 'ć' instead of actually backspacing in a chat
window when widechar support was enabled.
Merge pull request #11 from jin-eld/freebsd

Fix configure for Free BSD
Merge pull request #12 from jin-eld/fix-widechar-backspace

Fix for the "bad character" when doing backspace in chat window
Merge pull request #10 from manuel-arguelles/check_locale

Add check for setlocale()
Make sure toxic compiles on MinGW/Win32 again

The config dir stuff is simply broken and needs to be fixed. So for now
disabled it, until someone has time to look into it.
Hiding DHT tab since it doesn't work currently
Removed dht window because it's not supported by the new public api
Merge pull request #13 from JFreegman/master

Remove DHT window
Removed DHT Bootstrap servers that can not be bootstrapped from.
Merge pull request #14 from jin-eld/win32

Make sure toxic compiles on MinGW/Win32 again
Improved msvc compatibility
Improved msvc compatibility
Adjusted it to compile -wall, -c89
Updated platos's bootstrap server key
fixed "free(): invalid pointer" when XDG_CONFIG_HOME is set
Merge pull request #16 from gs93/invalid_pointer

fixed "free(): invalid pointer" when XDG_CONFIG_HOME is set