automatically save buffers before compile (and running tests)