Few issues raised from compiling this library as a kernel module (according to the macros in the code, the original authors prepared the code for compiling in kernel).
1. Unicode is unsupported in kernel, all wchar usage should be "macroed" out.
2. All EXPORT_SYMBOL statements should be ended with semicolon.
3. Kernel checkpatch found "3375 errors, 4232 warnings" coding style issues, they should be fixed to let developers to integrate this library code in their kernel modules.
Please fix those issues for full competability with kernel build.