try add win32 compability

Signed-off-by: xiehuc <xiehuc@gmail.com>