Restore behaviour_info/1 on older Erlang, don't emit so many warnings.
Merge bug26343
stable to default