win32 fixes

add crypt implementation until we replace this with openssl
replace CurrentTime/gettimeofday with uv_now