added APPEND_CFLAGS support