Make the library compatible with neko

Those changes allow compiling with neko