Fixed Makefile problems with linkage
Testing thread dispatching