Fix for base 4.7 (GHC 7.8)

With this small fix the package builds on the new version of `base` which removes `unsafeForeignPtrToPtr` from `Foreign`, while still building on older versions.