[Qt4] Refactor phase functions so that ebuilds can override multilib_src_*