Test if do_clean() exists before executing it.
Added mips and mipsel cross build profiles.