reorder build rules to build dbg,devel,opt so that warnings appear early