Change includes stdlib.h and stdio.h to cstdlib and cstdio to avoid C
macro definitions
Replace stdio.h to cstdio to fix FFmpeg pipe eror on OSX