Is it possible to make global "defines" that work with libraries?

Setting up Serial also includes the buffer. When you switch, take care about that or more specifically what is in that or you could end up with funny results.