diff --git a/setup.py b/setup.py
index 633e439c10be377f36c63a3d90fae15f8cb983ed..152c599c0a7841f9a3e4993d4699d51beacc9ad3 100644
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ def main():
     EXTRA_LIBRARY_DIRS = []
     EXTRA_LIBRARIES = []
 
-    EXTRA_DEFINES["PYGPU_PACKAGE"] = "pyopencl";
+    EXTRA_DEFINES["PYGPU_PACKAGE"] = "pyopencl"
 
     if conf["CL_TRACE"]:
         EXTRA_DEFINES["PYOPENCL_TRACE"] = 1
@@ -81,7 +81,7 @@ def main():
         from distutils.command.build_py import build_py
 
     try:
-        import murko
+        import mako
     except ImportError:
         print("-------------------------------------------------------------------------")
         print("Mako is not installed.")
@@ -180,6 +180,7 @@ def main():
                         "src/wrapper/wrap_cl_part_2.cpp", 
                         "src/wrapper/wrap_constants.cpp", 
                         "src/wrapper/wrap_mempool.cpp", 
+                        "src/wrapper/bitlog.cpp", 
                         ]+EXTRA_OBJECTS, 
                     include_dirs=INCLUDE_DIRS + EXTRA_INCLUDE_DIRS,
                     library_dirs=LIBRARY_DIRS + conf["CL_LIB_DIR"],
diff --git a/src/wrapper/bitlog.cpp b/src/wrapper/bitlog.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..88b820fa362668f9af11a31c8913dbeb03052e94
--- /dev/null
+++ b/src/wrapper/bitlog.cpp
@@ -0,0 +1,27 @@
+#include "bitlog.hpp"
+
+
+
+
+/* from http://graphics.stanford.edu/~seander/bithacks.html */
+const char pyopencl::log_table_8[] =
+{
+  0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3,
+  4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+  5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
+  5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
+  6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+  6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+  6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+  6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+  7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+  7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+  7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+  7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+  7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+  7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+  7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+  7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
+};
+
+