improved the library. add support Windows.