Core: Allow to configure custom thread pools

Make sense. I'll update that.