C. Wait Megan, we'll go to the library together.
Commas act as sort of a breath in the sentence, you wouldn't need one in A or B. It would be strange to pause there, so it is incorrect. As well, whenever you directly address someone in a sentence you need a comma after their name, however it has to do it without changing the sentence. Therefore C is the correct answer.