Fixes to flash.net.Socket