only call compile hook once

sometimes projects have multiple compile steps (see lein-ring, which generates
and compiles code into the project). avoid calling unpack-resources multiple
times.