Code gen changed to static lib.