Fixed all warnings

 - unsigned variables were being used to see if they were less than 0
 - tests/test* were using argc and argv (unused variables removed)
 - Threads used UNUSED variables that are required by the signature, so
   dummy used them for the compiler to be happy
Merge branch 'fix-warnings' into testing