Add switch of win32 and unix