fix all error of win32
add snappy support.