Initial copy from asymptote's svn