fixed registration library linking problem

- when linking directly as a lib the registration for native algorithms
  wasn't called - added a factory method that calls (references) the
  registration functions which solves the registration problem. It must in
  fact not be called because its presence itself is enough for the
  auto-registration to kick in

- also fixed start/stop/start problem - algorithm couldn't be restarted
  once stopped