fix bugs on linux and win32