include cstdio to fix build with gcc 4.4