fix lots of warnings in the C code generator to make it compile with -Werror
use boost::assign::map_list_of to replace a singleton class by a namespace
use mkstemps instead of mktemp