Support Windows.

N/A

Signed-off-by: shrekno <tiankk@gmail.com>