fix thread api & clean up source tree

- 'join' function in thread is now return the result of target thread
- now floating point option can be configured in makefile
- fix some typo