Make the macro compatible with Scala 2.10.x