updated compile_code to use a C compiler