Problem in Serial Communication.

I just compiled it and sent it to a Mega using a Mac. Not very helpful, but it perhaps suggests that you have an issue with your environment.