Fixed some problems with raw socket and UDP sockets and source addresses