Fix compile error with GHC 7.2.*

While the Safe Haskell extension was introduced in GHC 7.2, -XUnsafe
extension was introduced in 7.4.
Merge pull request #6 from eagletmt/fix-compile-7.2

Fix compile error with GHC 7.2.*