complete memory leak bug and update compiler option

- compile option
- multi thread debug dll -> multi thread