Moving set hostname command into compile phase.