Redefine apply/revapply only if using an old compiler. Rename $ into @@.