Fix mistakes on none-unix platform.