I didn't not include <serial.h>. I added it to the code and this came up:
fatal error: serial.h: No such file or directory compilation terminated.
There is no serial library included in the list of libraries from the 1.5.2 download. Is it located somewhere else?