fix ngs2d freed; add exec linux