Fix build errors related to get_filename on boost

This patch fixes errors like the one pasted below. In some cases this
bug had already been patched on windows platforms. If Michael OKs on it
i guess all the #ifdef win32 can be removed.

This patch helped the build work better on
* libboost-dev-1.46.1-7ubuntu3
* gcc-4:4.6.3-1ubuntu5

[  7%] Building CXX object helpers/settings_manager/CMakeFiles/settings_manager.dir/settings_manager_impl.cpp.o
In file included from /tmp/nscp/include/settings/impl/settings_http.hpp:11:0,
                 from /tmp/nscp/helpers/settings_manager/settings_manager_impl.cpp:7:
/tmp/nscp/include/file_helpers.hpp: In static member function ‘static std::wstring file_helpers::meta::get_filename(boost::filesystem3::path)’:
/tmp/nscp/include/file_helpers.hpp:44:46: error: no matching function for call to ‘cvt(boost::filesystem3::path)’
/tmp/nscp/include/file_helpers.hpp:44:46: note: candidates are:
/tmp/nscp/include/utf8.hpp:43:10: note: template<class StringT> StringT utf8::cvt(const wstring&)
/tmp/nscp/include/utf8.hpp:47:10: note: template<class StringT> StringT utf8::cvt(const string&)
make[2]: *** [helpers/settings_manager/CMakeFiles/settings_manager.dir/settings_manager_impl.cpp.o] Error 1
make[1]: *** [helpers/settings_manager/CMakeFiles/settings_manager.dir/all] Error 2
make: *** [all] Error 2
docs/conf.py - pdf_use_index set to False

Had to change pdf_use_index to False because otherwise
nscp would not build for me using rst2pdf-0.16-2

This was the error i was getting before:

[ERROR] pdfbuilder.py:130 'tuple' object has no attribute 'lower'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/rst2pdf/pdfbuilder.py", line 122, in write
    appendices=opts.get('pdf_appendices', self.config.pdf_appendices) or [])
  File "/usr/lib/pymodules/python2.7/rst2pdf/pdfbuilder.py", line 219, in assemble_doctree
    index_nodes=genindex_nodes(genindex)
  File "/usr/lib/pymodules/python2.7/rst2pdf/pdfbuilder.py", line 398, in genindex_nodes
    output.append('`%s <#%s>`_'%(entryname,nodes.make_id(links[0])))
  File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 1838, in make_id
    id = string.lower()
AttributeError: 'tuple' object has no attribute 'lower'
[100%] Built target build_docs_pdf
Merge pull request #1 from palli/fix-build-issues

Fix linux build issues
Some random unix related fixes as well as starting to refactor realtime threads to a common class (checklogfile real time stuff "might" not work currently, willbe fixed in the next day or so)
* readded reuse (this is getting comical since it is sort of required on linux but sort of not on windows....)
* fixed some socket issues
* added retrys to bind
some ubuntu build issues (modern g++?)