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