add mysql files, pthread lib and test