CLOUDIFY-1826 fixed class cast. instantiate a thread pool executor directly, not via Executors