Updated makefile
Fixed an error where a window would print ERROR: -1 at the top.