Templated ParallelEventThread and fix NonCopyable class