diff --git a/unix/lexerunix.c b/unix/lexerunix.c
index 617d92bb823807f56653637588a043152433bd53..e76d7f2c2113e14fc1c80611a98bae69d6a99365 100644
--- a/unix/lexerunix.c
+++ b/unix/lexerunix.c
@@ -36,7 +36,7 @@ py_lexer_t *py_lexer_new_from_str_len(const char *src_name, const char *str, uin
     sb->src_beg = str;
     sb->src_cur = str;
     sb->src_end = str + len;
-    return py_lexer_new(src_name, sb, (py_lexer_stream_next_char_t)str_buf_next_char, (py_lexer_stream_free_t)str_buf_free);
+    return py_lexer_new(src_name, sb, (py_lexer_stream_next_char_t)str_buf_next_char, (py_lexer_stream_close_t)str_buf_free);
 }
 
 py_lexer_t *py_lexer_new_from_file(const char *filename) {
diff --git a/unix/mpyconfig.h b/unix/mpyconfig.h
index 3ab17e6cabfeaf7d3c328e140ae32dbae8245386..605b2324ed838c2810b021bea9856e2dcd2427be 100644
--- a/unix/mpyconfig.h
+++ b/unix/mpyconfig.h
@@ -8,6 +8,8 @@
 
 // type definitions for the specific machine
 
+#define BYTES_PER_WORD (8)
+
 typedef int64_t machine_int_t; // must be pointer size
 typedef uint64_t machine_uint_t; // must be pointer size
 typedef void *machine_ptr_t; // must be of pointer size