Codegen

Add "-static", "-sco" options. Fully support linux/win static/dynamic modes