fixed a compilation error by adding an import for unsafeForeignPtrToPtr

Fixing #1