diff --git a/Bindings/Libgit2/Windows.hsc b/Bindings/Libgit2/Windows.hsc
--- a/Bindings/Libgit2/Windows.hsc
+++ b/Bindings/Libgit2/Windows.hsc
@@ -3,6 +3,7 @@
 module Bindings.Libgit2.Windows where
 
 #ifdef GIT_WIN32
+#strict_import
 #ccall gitwin_set_codepage , CUInt -> IO ()
 #ccall gitwin_get_codepage , IO (CUInt)
 #ccall gitwin_set_utf8 , IO ()
diff --git a/hlibgit2.cabal b/hlibgit2.cabal
--- a/hlibgit2.cabal
+++ b/hlibgit2.cabal
@@ -1,5 +1,5 @@
 Name:                hlibgit2
-Version:             0.18.0.15
+Version:             0.18.0.16
 Synopsis:            Low-level bindings to libgit2
 Description:         Bindings to libgit2 v0.18.0.
 License-file:        LICENSE
@@ -229,6 +229,8 @@
       libgit2/src/win32/utf-conv.c
     include-dirs:
       libgit2/src/win32
+    extra-libraries:
+      ws2_32, regex, winhttp, crypt32, rpcrt4, ssl, crypto
   else
     cc-options: -D_GNU_SOURCE -DOPENSSL_SHA1 -Wno-deprecated-declarations
     c-sources:
@@ -237,5 +239,8 @@
       libgit2/src/unix/realpath.c
     include-dirs:
       libgit2/src/unix
+    if os(darwin)
+      include-dirs: /usr/local/opt/openssl/include
+      extra-lib-dirs: /usr/local/opt/openssl/lib
     extra-libraries:
       ssl, crypto, pthread
