Add warnings_as_errors flag
Add xref check to Makefile