added cstdio header file: GCC > 4.6.3 requires that segments that use standard functions must include the header file that contains the prototype of the function