fixed a linux compatibility issue in the UDP test cases
improved the keep alive setting for Mono platform