slim: cross build and dbg support.
libdmx: cross build and dbg support.