"pins_arduino.h: no such file or directory", but it's there?

Try adding this line at the end of the boards.txt file:

atmega328bb.build.variant=standard

Or if that doesn't work, try this one:

atmega328bb.build.variant=arduino:standard