chipping away at fixing the errors thrown after compiling threaded programs