diff --git a/src/CodeInterpreter.hh b/src/CodeInterpreter.hh
index 34bbdcbb49d5f146b741e30a08fd1bb6c9505aae..80db32ae4c6f1f5cf4b23f44c6afd0a4d6ee3e65 100644
--- a/src/CodeInterpreter.hh
+++ b/src/CodeInterpreter.hh
@@ -24,15 +24,8 @@
 #include <cstring>
 #include <utility>
 #include <vector>
-#ifdef LINBCG
-# include "linbcg.hh"
-#endif
 #ifdef BYTE_CODE
-# ifndef DEBUG_EX
-#  include "mex.h"
-# else
-#  include "mex_interface.hh"
-# endif
+# include <dynmex.h>
 #endif
 
 using namespace std;