Hafeez, Junaid wrap up big win for Pakistan