diff --git a/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/IoOps.cs b/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/IoOps.cs
index de80f6c..b1df019 100644
--- a/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/IoOps.cs
+++ b/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/IoOps.cs
@@ -1,4 +1,4 @@
-/* ****************************************************************************
+﻿/* ****************************************************************************
  *
  * Copyright (c) Microsoft Corporation. 
  *
@@ -453,57 +453,13 @@ namespace IronRuby.Builtins {
         #region isatty
         
 #if !SILVERLIGHT
-		private static int GetStdHandleId(ConsoleStreamType streamType) {
-
-            switch (streamType) {
-				case ConsoleStreamType.Input: return STD_INPUT_HANDLE;
-                case ConsoleStreamType.Output: return STD_OUTPUT_HANDLE;
-                case ConsoleStreamType.ErrorOutput: return STD_ERROR_HANDLE;
-                default: throw Assert.Unreachable;
-			}
-		}
-        
-#if MONO
-		
-	    [RubyMethod("isatty", BuildConfig = "!SILVERLIGHT")]
-        [RubyMethod("tty?", BuildConfig = "!SILVERLIGHT")]
-        public static bool IsAtty(RubyIO/*!*/ self) {
-            ConsoleStreamType? console = self.ConsoleStreamType;
-            if (console == null) {
-                return self.GetStream().BaseStream == Stream.Null;
-			}
-
-            int fd = GetStdHandleId(console.Value);
-			return isatty(fd);
-		}
-
-        private const int STD_INPUT_HANDLE = 0x00000000;
-        private const int STD_OUTPUT_HANDLE = 0x00000001;
-        private const int STD_ERROR_HANDLE = 0x00000002;
-
-        
-		/* code taken from the mono project. It lives in the Syscall.cs file in the POSIX library that comes with mono	*/
-		
-		[DllImport ("libc", EntryPoint="isatty")]
-		static extern int syscall_isatty (int desc);
-		
-		private static bool isatty (int desc)
-		{
-			int res = syscall_isatty (desc);
-			return res == 1;
-		}
-        
-		/* code snatching ended */
-			
-#else
-        
-		[RubyMethod("isatty", BuildConfig = "!SILVERLIGHT")]
+        [RubyMethod("isatty", BuildConfig = "!SILVERLIGHT")]
         [RubyMethod("tty?", BuildConfig = "!SILVERLIGHT")]
         public static bool IsAtty(RubyIO/*!*/ self) {
             ConsoleStreamType? console = self.ConsoleStreamType;
             if (console == null) {
                 return self.GetStream().BaseStream == Stream.Null;
-				}
+            }
 
             IntPtr handle = GetStdHandle(GetStdHandleId(console.Value));
             if (handle == IntPtr.Zero) {
@@ -513,6 +469,14 @@ namespace IronRuby.Builtins {
             return GetFileType(handle) == FILE_TYPE_CHAR;
         }
 
+        private static int GetStdHandleId(ConsoleStreamType streamType) {
+            switch (streamType) {
+                case ConsoleStreamType.Input: return STD_INPUT_HANDLE;
+                case ConsoleStreamType.Output: return STD_OUTPUT_HANDLE;
+                case ConsoleStreamType.ErrorOutput: return STD_ERROR_HANDLE;
+                default: throw Assert.Unreachable;
+            }
+        }
 
         private const int FILE_TYPE_CHAR = 0x0002;
 
@@ -526,8 +490,6 @@ namespace IronRuby.Builtins {
         [DllImport("kernel32")]
         private extern static int GetFileType(IntPtr hFile);
 #endif
-#endif
-			
 
         #endregion
 
diff --git a/Merlin/Main/Languages/Ruby/context.rb b/Merlin/Main/Languages/Ruby/context.rb
index 4d7b6fe..a3a64dd 100644
--- a/Merlin/Main/Languages/Ruby/context.rb
+++ b/Merlin/Main/Languages/Ruby/context.rb
@@ -278,7 +278,6 @@ class CSProjCompiler
       cs_args = ["out:\"#{build_dir + args[:output]}\""]
       cs_args += references(args[:references], working_dir).map { |ref| "r:\"#{ref}\"" }
       cs_args += compiler_switches
-      cs_args << 'define:MONO' if mono?
       cs_args += args[:switches] if args[:switches]
 
       if args[:resources]
