diff --git a/handa-gdata.cabal b/handa-gdata.cabal
--- a/handa-gdata.cabal
+++ b/handa-gdata.cabal
@@ -1,5 +1,5 @@
 name: handa-gdata
-version: 0.6.4
+version: 0.6.5
 cabal-version: >=1.6
 
 -- CHANGELOG:
@@ -100,7 +100,7 @@
                  , resourcet         >= 0.3
                  , split             >= 0.2.0.0
                  , time              -any
-                 , unix              -any
+                 , unix-compat       -any
                  , utf8-string       -any
                  , xml               >= 1.2.6
     exposed-modules: Crypto.GnuPG
@@ -132,6 +132,7 @@
                  , HTTP              >= 4000.2.5
                  , http-conduit      >= 1.9.0
                  , json              >= 0.5
+                 , network           -any
                  , old-locale        -any
                  , pretty            -any
                  , process           >= 1.1.0.2
@@ -141,7 +142,7 @@
                  , resourcet         >= 0.3
                  , split             >= 0.2.0.0
                  , time              -any
-                 , unix              -any
+                 , unix-compat       -any
                  , utf8-string       -any
                  , xml               >= 1.2.6
     main-is: Main.hs
diff --git a/src/Crypto/GnuPG.hs b/src/Crypto/GnuPG.hs
--- a/src/Crypto/GnuPG.hs
+++ b/src/Crypto/GnuPG.hs
@@ -6,7 +6,7 @@
 --
 -- Maintainer  :  Brian W Bush <b.w.bush@acm.org>
 -- Stability   :  Stable
--- Portability :  Linux
+-- Portability :  Linux only?
 --
 -- | Interface to GnuPG.  The GnuPG program \"gpg\" must be on the PATH.
 --
diff --git a/src/Main.hs b/src/Main.hs
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -6,7 +6,7 @@
 --
 -- Maintainer  :  Brian W Bush <b.w.bush@acm.org>
 -- Stability   :  Stable
--- Portability :  Linux
+-- Portability :  Portable
 --
 -- |  Command-line access to Google APIs.
 --
@@ -34,6 +34,7 @@
 import Network.Google.Storage (StorageAcl(Private), deleteObject, getBucket, getObject, headObject, putObject)
 import Network.Google.Storage.Encrypted (getEncryptedObject, putEncryptedObject)
 import Network.Google.Storage.Sync (sync)
+import Network.Socket.Internal (withSocketsDo)
 import System.Console.CmdArgs
 import Text.JSON (encode)
 import Text.XML.Light (ppTopElement)
@@ -161,7 +162,7 @@
     , gshead
     , gssync
     ]
-    &= summary "hgData v0.6.1, (c) 2012-13 Brian W. Bush <b.w.bush@acm.org>, MIT license."
+    &= summary "hgData v0.6.5, (c) 2012-13 Brian W. Bush <b.w.bush@acm.org>, MIT license."
     &= program "hgdata"
     &= help "Command-line utility for accessing Google services and APIs. Send bug reports and feature requests to <http://code.google.com/p/hgdata/issues/entry>."
 
@@ -589,6 +590,6 @@
 -- | Main entry point.
 main :: IO ()
 main =
-  do
+  withSocketsDo $ do
     command <- cmdArgs hgData
     dispatch command
diff --git a/src/Network/Google/Books.hs b/src/Network/Google/Books.hs
--- a/src/Network/Google/Books.hs
+++ b/src/Network/Google/Books.hs
@@ -6,7 +6,7 @@
 --
 -- Maintainer  :  Brian W Bush <b.w.bush@acm.org>
 -- Stability   :  Stable
--- Portability :
+-- Portability :  Portable
 --
 -- | Functions for the Google Books API, see <https://developers.google.com/books/docs/v1/using#WorkingMyBookshelves>.
 --
diff --git a/src/Network/Google/Storage/Sync.hs b/src/Network/Google/Storage/Sync.hs
--- a/src/Network/Google/Storage/Sync.hs
+++ b/src/Network/Google/Storage/Sync.hs
@@ -6,7 +6,7 @@
 --
 -- Maintainer  :  Brian W Bush <b.w.bush@acm.org>
 -- Stability   :  Stable
--- Portability :  POSIX
+-- Portability :  Portable
 --
 -- | Synchronization of filesystem directories with Google Storage buckets.
 --
@@ -42,7 +42,7 @@
 import System.FilePath (pathSeparator)
 import System.IO (hFlush, stdout)
 import System.Locale (defaultTimeLocale)
-import System.Posix.Files (fileSize, getFileStatus, modificationTime)
+import System.PosixCompat.Files (fileSize, getFileStatus, modificationTime)
 import Text.Regex.Posix ((=~))
 import Text.XML.Light (Element, QName(qName), filterChildrenName, filterChildName, ppTopElement, strContent)
 
