move apparat to prime-core
Merge remote-tracking branch 'origin/haxe3_fixes' into haxe3_fixes