Added function to get windows error string from any error number (ie. winsock)
Added sleep for console app (frame limiter) so not consuming 100%cpu