fix compile error on Mac OS X by added <stdio.h> header file.