modify deadlock issue on linux
modify compile error
remove -O2 option