Fix boost linking issues.