Another set of changes that move complete build on FreeBSD
possible. Still does not compile due to the problem with libthrift
not generating the asio libraries...