Add compile() and link() methods to program