diff --git a/bare-arm/mpconfigport.h b/bare-arm/mpconfigport.h
index 7f4c378901d6c15e24b60f7b2d0aeac0687a84d8..dfb6312a880b6acbaf8d6080ead046b1d8fa27f7 100644
--- a/bare-arm/mpconfigport.h
+++ b/bare-arm/mpconfigport.h
@@ -11,6 +11,10 @@
 #define MICROPY_ENABLE_REPL_HELPERS (0)
 #define MICROPY_ENABLE_LEXER_UNIX   (0)
 #define MICROPY_ENABLE_SOURCE_LINE  (0)
+#define MICROPY_ENABLE_MOD_IO       (0)
+#define MICROPY_ENABLE_MOD_STRUCT   (0)
+#define MICROPY_ENABLE_MOD_SYS      (0)
+#define MICROPY_CPYTHON_COMPAT      (0)
 #define MICROPY_LONGINT_IMPL        (MICROPY_LONGINT_IMPL_NONE)
 #define MICROPY_FLOAT_IMPL          (MICROPY_FLOAT_IMPL_NONE)
 #define MICROPY_PATH_MAX            (512)
diff --git a/unix-cpy/mpconfigport.h b/unix-cpy/mpconfigport.h
index 752df4f49b78c1720e6ea02f10df6d98122d4977..7d0e3258eb5682928d3b356ad4b87126f15ab83a 100644
--- a/unix-cpy/mpconfigport.h
+++ b/unix-cpy/mpconfigport.h
@@ -22,5 +22,3 @@ typedef unsigned int machine_uint_t; // must be pointer size
 typedef void *machine_ptr_t; // must be of pointer size
 typedef const void *machine_const_ptr_t; // must be of pointer size
 typedef double machine_float_t;
-
-machine_float_t machine_sqrt(machine_float_t x);