Added macro for defining gc callbacks.

These callbacks are needed for `AddGCEpilogueCallback` and `AddGCPrologueCallback`. As they started taking `Isolate` arguments, it becomes necessary to split on version.