Add #error diagnostics to compiler.h