Adjusted CompileMacro so that it works for both Scala 2.10 and 2.11.