set MDDS_CFLAGS in configure

Change-Id: Ib6be67c7a23e5b403e90f4f72578f7385e895f23