Fix library CFLAGS in compile phase