perf: double compiler speed

The compare function in the Headers module was not short-circuiting upon
discovering a non-equal field. Adding the short-circuiting produces
roughly a 2x speedup in the LocalCompiler.
Merge pull request #352 from frenetic-lang/perf

double compiler speed