Updated macros, add equivalent windows functions, fix hex_conversion bugs, fixed udp_send_thread bug, works on Linux again and hopefully Windows as well

Improperly declaring struct

Very very close to completed windows_port