Haiku fixes

Some fixes required to build the native platform on Haiku

Haiku still uses gcc2 by default for binary compatibility with BeOS, which needs some help.
* Fix PROCESS_CONTEXT_END() calls missing the parameter.
* Work around variable-size arrays at end of struct declaration with a cpp macro.