Restructuring makefiles, added new toy benchmark with pthreads.