Setting baud rate for Atmega328p with setbaud.h
As the comments suggest, you have to define BAUD in the setbaud.h file. Here it says you have to define F_CPU  before including setbaud.h file. (That's because setbaud.h uses some macros to calculate UBR0 values based on your required baud rate and operating CPU speed)