change: managed to work on Windows. Need to be modified to be compatible at least with Mac OSX 10.8

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>