diff --git a/src/dec/buffer.c b/src/dec/buffer.c
index 98520a04..9161253a 100644
--- a/src/dec/buffer.c
+++ b/src/dec/buffer.c
@@ -10,8 +10,9 @@
 // Author: Skal (pascal.massimino@gmail.com)
 
 #include <stdlib.h>
-#include "vp8i.h"
-#include "webpi.h"
+
+#include "./vp8i.h"
+#include "./webpi.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/dec/idec.c b/src/dec/idec.c
index a1f1a583..7ca3df4f 100644
--- a/src/dec/idec.c
+++ b/src/dec/idec.c
@@ -13,8 +13,8 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include "webpi.h"
-#include "vp8i.h"
+#include "./webpi.h"
+#include "./vp8i.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/dec/layer.c b/src/dec/layer.c
index f7d41e0e..13414884 100644
--- a/src/dec/layer.c
+++ b/src/dec/layer.c
@@ -11,7 +11,8 @@
 
 #include <assert.h>
 #include <stdlib.h>
-#include "vp8i.h"
+
+#include "./vp8i.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/dec/quant.c b/src/dec/quant.c
index 9be9814b..2ea4cdb0 100644
--- a/src/dec/quant.c
+++ b/src/dec/quant.c
@@ -9,7 +9,7 @@
 //
 // Author: Skal (pascal.massimino@gmail.com)
 
-#include "vp8i.h"
+#include "./vp8i.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/dec/vp8.c b/src/dec/vp8.c
index 97837272..ef119e85 100644
--- a/src/dec/vp8.c
+++ b/src/dec/vp8.c
@@ -10,8 +10,9 @@
 // Author: Skal (pascal.massimino@gmail.com)
 
 #include <stdlib.h>
-#include "vp8i.h"
-#include "webpi.h"
+
+#include "./vp8i.h"
+#include "./webpi.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/dec/webp.c b/src/dec/webp.c
index 6944461e..215acbf3 100644
--- a/src/dec/webp.c
+++ b/src/dec/webp.c
@@ -10,8 +10,9 @@
 // Author: Skal (pascal.massimino@gmail.com)
 
 #include <stdlib.h>
-#include "vp8i.h"
-#include "webpi.h"
+
+#include "./vp8i.h"
+#include "./webpi.h"
 #include "../webp/mux.h"  // For 'ALPHA_FLAG'.
 
 #if defined(__cplusplus) || defined(c_plusplus)
diff --git a/src/enc/alpha.c b/src/enc/alpha.c
index 22a54219..c4cb1c39 100644
--- a/src/enc/alpha.c
+++ b/src/enc/alpha.c
@@ -11,7 +11,8 @@
 
 #include <assert.h>
 #include <stdlib.h>
-#include "vp8enci.h"
+
+#include "./vp8enci.h"
 #include "../utils/alpha.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
diff --git a/src/enc/analysis.c b/src/enc/analysis.c
index eb923eea..cfa591c7 100644
--- a/src/enc/analysis.c
+++ b/src/enc/analysis.c
@@ -13,8 +13,8 @@
 #include <string.h>
 #include <assert.h>
 
-#include "vp8enci.h"
-#include "cost.h"
+#include "./vp8enci.h"
+#include "./cost.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/enc/cost.c b/src/enc/cost.c
index 656d1ea9..c28adc64 100644
--- a/src/enc/cost.c
+++ b/src/enc/cost.c
@@ -11,7 +11,7 @@
 
 #include <assert.h>
 
-#include "cost.h"
+#include "./cost.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/enc/cost.h b/src/enc/cost.h
index dec8900e..4089687e 100644
--- a/src/enc/cost.h
+++ b/src/enc/cost.h
@@ -12,7 +12,7 @@
 #ifndef WEBP_ENC_COST_H_
 #define WEBP_ENC_COST_H_
 
-#include "vp8enci.h"
+#include "./vp8enci.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/enc/filter.c b/src/enc/filter.c
index be6acd6a..68e8b28e 100644
--- a/src/enc/filter.c
+++ b/src/enc/filter.c
@@ -10,7 +10,8 @@
 // Author: somnath@google.com (Somnath Banerjee)
 
 #include <math.h>
-#include "vp8enci.h"
+
+#include "./vp8enci.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/enc/frame.c b/src/enc/frame.c
index d573995c..cc07870b 100644
--- a/src/enc/frame.c
+++ b/src/enc/frame.c
@@ -14,8 +14,8 @@
 #include <assert.h>
 #include <math.h>
 
-#include "vp8enci.h"
-#include "cost.h"
+#include "./vp8enci.h"
+#include "./cost.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/enc/iterator.c b/src/enc/iterator.c
index 8a4d38ea..5e05906a 100644
--- a/src/enc/iterator.c
+++ b/src/enc/iterator.c
@@ -11,7 +11,8 @@
 
 #include <stdlib.h>
 #include <string.h>
-#include "vp8enci.h"
+
+#include "./vp8enci.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/enc/layer.c b/src/enc/layer.c
index 65e4cd80..d5d76de2 100644
--- a/src/enc/layer.c
+++ b/src/enc/layer.c
@@ -11,7 +11,8 @@
 
 #include <assert.h>
 #include <stdlib.h>
-#include "vp8enci.h"
+
+#include "./vp8enci.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/enc/picture.c b/src/enc/picture.c
index 306be491..d167cd70 100644
--- a/src/enc/picture.c
+++ b/src/enc/picture.c
@@ -11,7 +11,8 @@
 
 #include <assert.h>
 #include <stdlib.h>
-#include "vp8enci.h"
+
+#include "./vp8enci.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/enc/quant.c b/src/enc/quant.c
index 5a523054..5f705f71 100644
--- a/src/enc/quant.c
+++ b/src/enc/quant.c
@@ -12,8 +12,8 @@
 #include <assert.h>
 #include <math.h>
 
-#include "vp8enci.h"
-#include "cost.h"
+#include "./vp8enci.h"
+#include "./cost.h"
 
 #define DO_TRELLIS_I4  1
 #define DO_TRELLIS_I16 1   // not a huge gain, but ok at low bitrate.
diff --git a/src/enc/tree.c b/src/enc/tree.c
index 60f63436..527020fd 100644
--- a/src/enc/tree.c
+++ b/src/enc/tree.c
@@ -9,7 +9,7 @@
 //
 // Author: Skal (pascal.massimino@gmail.com)
 
-#include "vp8enci.h"
+#include "./vp8enci.h"
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
diff --git a/src/enc/webpenc.c b/src/enc/webpenc.c
index 48243e38..a9153de4 100644
--- a/src/enc/webpenc.c
+++ b/src/enc/webpenc.c
@@ -14,7 +14,7 @@
 #include <string.h>
 #include <math.h>
 
-#include "vp8enci.h"
+#include "./vp8enci.h"
 
 // #define PRINT_MEMORY_INFO
 
diff --git a/src/mux/mux.c b/src/mux/mux.c
index a861caf0..125e3ffd 100644
--- a/src/mux/mux.c
+++ b/src/mux/mux.c
@@ -12,9 +12,9 @@
 
 #include <assert.h>
 #include <stdlib.h>
-#include "webp/mux.h"
-#include "dec/vp8i.h"
-#include "dec/webpi.h"    // for chunk-size constants
+#include "../webp/mux.h"
+#include "../dec/vp8i.h"
+#include "../dec/webpi.h"    // for chunk-size constants
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {