fix static linking in boost