$ git clone http://tcclient.ion.nu/tc_client.git
commit 345cbeb43e0dd0a07a3a105890d194572bf17b67
Author: Alicia <...>
Date:   Thu Dec 1 23:36:03 2016 +0100

    Fixes for compiling in a separate directory.

diff --git a/ChangeLog b/ChangeLog
index a11c51b..9855a4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 Added some compatibility code for OSX.
 Enabled compiling in a directory separate from the source directory.
 Added a /disablesnapshots command to disable capturing outgoing cams for the flash client's "snapshot" feature, /enablesnapshots to re-enable.
+Fixes for compiling in a separate directory.
 tc_client-gtk: bugfix: don't rely on stack allocated variables for GUI callbacks.
 tc_client-gtk: install the camera placeholder animation for the 'install' target.
 tc_client-gtk: mark outgoing video keyframes as keyframes.
diff --git a/Makefile b/Makefile
index 4ca6e7f..d9cfc93 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 VERSION=0.41pre
-CFLAGS=-g3 -Wall $(shell curl-config --cflags)
+CFLAGS=-g3 -Wall -I. $(shell curl-config --cflags)
 LDFLAGS=-g3
 PREFIX=/usr/local
 CURL_LIBS=$(shell curl-config --libs)
diff --git a/utilities/compat.h b/utilities/compat.h
index 9246447..a520178 100644
--- a/utilities/compat.h
+++ b/utilities/compat.h
@@ -14,7 +14,7 @@
     You should have received a copy of the GNU Affero General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
-#include "../config.h"
+#include "config.h"
 #if defined(__ANDROID__) || defined(_WIN32)
 #include <stdint.h>
 #include <stddef.h>
diff --git a/utilities/compat_av.h b/utilities/compat_av.h
index 0ff731a..f9fea19 100644
--- a/utilities/compat_av.h
+++ b/utilities/compat_av.h
@@ -14,7 +14,7 @@
     You should have received a copy of the GNU Affero General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
-#include "../config.h"
+#include "config.h"
 
 #ifdef AVCODEC_NO_SEND_RECEIVE_API
   #include <libavcodec/avcodec.h>