cmake: Add compiling flags -Werror and -Wall

Change-Id: I8ba89e3284e1fba4e5e8d32a29fe1e1db19aed31