Moto binaries: Add liblog and fix compile errors

Change-Id: I797d93cef5afee7fe4df8a6fa2dd51730d1d0882