update code.c to support windows and linux at the same time, also does the fancy things in derp.lua