Maybe we should remove JOHN_CFLAGS from LDFLAGS? Although I can't remember if I added it for a reason.