fix unexpected variable issue in build
support both R14 'behaviours' and R15+ 'callback info'
Merge pull request #42 from ericbmerritt/next

fix unexpected variable issue in build