task: Enable compile-time warnings as errors Fix several issues and suppress a few warnings that can't or shouldn't be fixed. Change-Id: I7f43cc1694ce68fea87c77b15d19c439297dbefe