Fix for haxe 3.1

Haxe 3.1 changed the macro API, here's a fix for mockatoo.
Warning: not all mockatoo tests run, the fix is not complete! In particular there is a problem with mocking public functions that refer to private classes, but we don't need this fnctionality.