add support to compile this lib for windows
add support to compile this lib for windows