Missing header files break C99 compliance. Fixed with attached patch.
Created attachment 1934212 [details] Adds extra includes.