Finally fixed lua print by overriding with a c function