win32 support for compat/arc4random.c

 * use CRITICAL_SECTION in place of pthread_mutex_t
handle platforms where unsigned long is smaller than size_t
update to latest upstream

 build new ChaCha support and new eliptical curves