Export lookup c function
Export lookup function to the C interface
fix linker problem