append -I/mingw64/include to CFLAGS and -L/mingw64/lib to LDFLAGS.