Added defmacros and compilation_options. Warn on undef env var.