Effects of unreacted Mg impurities on the transport properties of MgB2