Add missing includes for C std lib (needed on Linux, but not Mac OS X).