This commit was SVN r8916.
Add required include files (stdio.h for NULL definition). Make it compile on MAC OS 10.3. This commit was SVN r8914.
This commit was SVN r8912.