That's been tested in court before, in Sega v. Accolade (http://en.wikipedia.org/wiki/Sega_v._Accolade). (You had to display a Sega logo before your game could run, so you had to have their logo in your code)
In short, it's fair use.
In short, it's fair use.