Have at least one wall of the bathroom be a stud wall. As to the kitchen sink (or any other fixture) on an exterior log wall there aren't any other options other than running the vent in front of the wall.