Fix broken CFLAGS and LDFLAGS