Get initRest working with both interpreted and compiled heist