Mr. Gibbs: It's bad luck to wake a man when he's sleeping.
Jack Sparrow: Ah, but fortunately I know how to counter it: The man who did the waking buys the man who was sleeping a drink; and then the man who was sleeping drinks it while listening to a proposition from the man who did the waking.
Mr. Gibbs: Aye...that'll about do it. [He gets up and Will dumps another bucket of water over his head.] BLAST! I'm already awake!
Will: THAT was for the smell.
Just as Jack says, "On deck, you scabrous dogs," to the very left edge of the screen over Jack's shoulder is a grip crew member with a tan cowboy hat, white short sleeve tee shirt and sunglasses, just standing there looking out to sea.
The bit where Will impersonates Jack was devised by Orlando Bloom (Will), who asked the producer if he could put it in the movie.