tools/null_state_gen: fix various compiler warnings

Add the debug and warning flags to cflags and fix the resulting issues.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
9 files changed