Make some more function jack_engine private (moved from engine.hpp) and use references.