Fixed most build errors, but need to upgrade/normalize boost version.