Apply changes listed by John Chapman for OSX 10.9 compatibility see http://www.johnchapman.net/crypto-currency/mining-litecoin-on-mac-os-x-with-cudaminer/
diff --git a/configure.ac b/configure.ac
index bfda1fb..9e97820 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,12 +146,12 @@ if test -n "$with_cuda"
 then
    CUDA_CFLAGS="-I$with_cuda/include"
    CUDA_LIBS="-lcudart"
-   CUDA_LDFLAGS="-L$with_cuda/lib$SUFFIX"
+   CUDA_LDFLAGS="-L$with_cuda/lib"
    NVCC="$with_cuda/bin/nvcc"
 else
    CUDA_CFLAGS="-I/usr/local/cuda/include"
    CUDA_LIBS="-lcudart"
-   CUDA_LDFLAGS="-L/usr/local/cuda/lib$SUFFIX"
+   CUDA_LDFLAGS="-L/usr/local/cuda/lib"
    NVCC="nvcc"
 fi
 AC_SUBST(CUDA_CFLAGS)
diff --git a/scrypt-jane.cpp b/scrypt-jane.cpp
index 5733ac9..c56e2b0 100644
--- a/scrypt-jane.cpp
+++ b/scrypt-jane.cpp
@@ -22,7 +22,7 @@
 #define scrypt_maxp 25  /* (1 << 25) = ~33 million */

 #include <stdio.h>
-#include <malloc.h>
+#include <malloc/malloc.h>

 // ---------------------------- BEGIN keccak functions ------------------------------------

diff --git a/scrypt.cpp b/scrypt.cpp
index da1d51b..52bcdc3 100644
--- a/scrypt.cpp
+++ b/scrypt.cpp
@@ -44,7 +44,7 @@ using namespace Concurrency;
 #include <string.h>

 #include <emmintrin.h>
-#include <malloc.h>
+#include <malloc/malloc.h>
 #include <new>

 // A thin wrapper around the builtin __m128i type
diff --git a/sha3.cpp b/sha3.cpp
index 02b40ca..d48cf15 100644
--- a/sha3.cpp
+++ b/sha3.cpp
@@ -6,7 +6,7 @@

 #include <string.h>
 #include <stdio.h>
-#include <malloc.h>
+#include <malloc/malloc.h>

 #include "sha3.h"