Do not build liblog if liblog is already provided

Change-Id: Ibaa08d73ae9de1d953f82c128c0418b68f792910