Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -6,7 +6,7 @@ BINDIR ?= $(PREFIX)/bin
 
 VERSION="0.6.0"
 
-CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-format-overflow
+CFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -I/usr/local/include -I/usr/local/include/libepoll-shim
 override CFLAGS += -DVERSION=\"$(VERSION)\"
 
 VPATH = $(WAYLAND_PROTOCOLS_DIR)/stable/xdg-shell \
@@ -17,14 +17,14 @@ GEN =	xdg-shell.h xdg-shell.c \
 	xdg-decoration-unstable-v1.h xdg-decoration-unstable-v1.c \
 	primary-selection-unstable-v1.h primary-selection-unstable-v1.c
 
-LIBS=-lrt -lm -lutil -lwayland-client -lwayland-cursor -lxkbcommon -Ltsm -lhtsm
+LIBS=-L/usr/local/lib -R/usr/local/lib -lm -lutil -lwayland-client -lwayland-cursor -lxkbcommon -Ltsm -lhtsm -lepoll-shim
 OBJ=xdg-shell.o xdg-decoration-unstable-v1.o primary-selection-unstable-v1.o glyph.o main.o
 
 havoc: tsm $(OBJ)
 	$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
 
 install: havoc
-	install -D -t $(DESTDIR)$(BINDIR) havoc
+	install -m 755 havoc $(BINDIR)
 
 uninstall:
 	rm -f $(DESTDIR)$(BINDIR)/havoc
