cleaned up build file. added switches. added tests

added the bind/callback test
added the thread taskrunner test