socket.m: Clean up #ifdefs