Looks like a couple of changes are needed to avoid implicit function declarations. There is no upstream left, so I'm filing this bug for tracking purposes.
Created attachment 1930538 [details] C99 port