Backport macros to simultaneously support Scala 2.10.x.