Compile .cgi script into a sub