Added more linking switches for compatibility with different platforms.

The switches were taken from Boost.ASIO Jamfiles as most of them are needed to build network-related code. Also replaced the linkflags with libraries so that Boost.Build takes care of the actual flags.