adding threading support for linux/windows, support for static/shared boost