Experimenting with internal cgo support for CFLAGS and LDFLAGS.
diff --git a/Makefile b/Makefile
index 3b2980e..5114a49 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,6 @@
 	emitter.o\
 
 CGO_LDFLAGS+=-lm -lpthread
-CGO_CFLAGS+=-I$(PWD) -DHAVE_CONFIG_H=1
+CGO_CFLAGS+=-I. -DHAVE_CONFIG_H=1
 
 include $(GOROOT)/src/Make.pkg
diff --git a/helpers.h b/helpers.h
index bc0ab00..c7be8fb 100644
--- a/helpers.h
+++ b/helpers.h
@@ -3,6 +3,9 @@
 
 #include <yaml.h>
 
+#define CGO_LDFLAGS "-lm -lpthread"
+#define CGO_CFLAGS "-I. -DHAVE_CONFIG=1"
+
 #define DECLARE_YUNION_FUNC(name) \
     __typeof__(((yaml_event_t *)0)->data.name) *\
     event_##name(yaml_event_t *event);