fixed compile options in templates and added supress-whitespace