Allow the use of -g and -annot
Use warn-error, add support for tests