Cleanup GCC compile warnings and enable -Werror

Change-Id: If98f9033f2214472f7bc0ff380b0fe70be245e4e
Signed-off-by: Steve Kinneberg <stevek@qce.qualcomm.com>