fixed a compilation error by adding an import for unsafeForeignPtrToPtr