Fixes some compile issues on RHEL6 using gcc-4.4.7-4

-Includes stdio.h in parser.cpp to get getc and ungetc declarations.
-Changes smc.cpp to wrap the file suffix in std::string, as this somehow failed to compile on gcc-4.4.7-4