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