Spell-Like Abilities, Casting, and Prerequisites: Does a creature with a spell-like ability count as being able to cast that spell for the purpose of prerequisites or requirements?
Only if the pre-requisite calls out the name of a spell explicitly. For instance, the Dimensional Agility feat (Ultimate Combat) has "ability to use the abundant step class feature or cast dimension door" as a prerequisite; a barghest has dimension door as a spell-like ability, so the barghest meets the "able to cast dimension door prerequisite for that feat. However, the barghest's dimension door would not meet requirements such as "Ability to cast 4th level spells" or "Ability to cast arcane spells".
that's the best I could find. there might be a newer errata that I can't find