Porting over threading code
Adding header defines for the threaded eval init/cleanup calls