Move definition of xchg() to spin.c
Implement test-and-set lock
Add files and template for libcounter.so, liblist.so, and libhash.so
Makefile: Remove object files in clean target and use -fPIC when compiling
object files
fixed some struct syntax